清理代码格式

pull/93/head
ChenX 6 years ago
parent 975240b586
commit 6c43a4b195

@ -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)
{

Loading…
Cancel
Save