Chore: Code Cleanup

pull/3934/head
IgorA100 2024-04-01 14:04:57 +03:00 committed by GitHub
parent dcc0ff071a
commit 131a33ef38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -630,8 +630,8 @@ function handleClick(event) {
}
function shiftImgFrame() { //We calculate the coordinates of the image displacement and shift the image
let newPosX = parseInt((PrevCoordinatFrame.x - coordinateMouse.shiftMouse_x) * 1);
let newPosY = parseInt((PrevCoordinatFrame.y - coordinateMouse.shiftMouse_y) * 1);
let newPosX = parseInt(PrevCoordinatFrame.x - coordinateMouse.shiftMouse_x);
let newPosY = parseInt(PrevCoordinatFrame.y - coordinateMouse.shiftMouse_y);
if (newPosX < 0) newPosX = 0;
if (newPosX > monitorWidth) newPosX = monitorWidth;