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