From 6c43a4b195d0c0b2ba41859111e5fa95901cbe02 Mon Sep 17 00:00:00 2001 From: ChenX Date: Fri, 3 Aug 2018 10:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/Modal/ModalsManage.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/UI/Components/Modal/ModalsManage.tsx b/src/UI/Components/Modal/ModalsManage.tsx index f30e447d0..6f08305bc 100644 --- a/src/UI/Components/Modal/ModalsManage.tsx +++ b/src/UI/Components/Modal/ModalsManage.tsx @@ -191,14 +191,17 @@ export class ModalManage document.onmousemove = (e) => { let moveX = e.clientX - modalX; - if (moveX < 0) moveX = 0; - else if - (moveX > window.innerWidth - modal.offsetWidth) moveX = window.innerWidth - modal.offsetWidth; + if (moveX < 0) + moveX = 0; + else if (moveX > window.innerWidth - modal.offsetWidth) + moveX = window.innerWidth - modal.offsetWidth; let moveY = e.clientY - modalY; - if (moveY < 0) moveY = 0; - else if (moveY > maxBottom) moveY = maxBottom; + if (moveY < 0) + moveY = 0; + else if (moveY > maxBottom) + moveY = maxBottom; if (moveY > 0) {