diff --git a/static/javascript/resize_photo_dialouge.js b/static/javascript/resize_photo_dialouge.js index a809a70..b103565 100644 --- a/static/javascript/resize_photo_dialouge.js +++ b/static/javascript/resize_photo_dialouge.js @@ -80,8 +80,10 @@ document.body.addEventListener("mousemove", () => { for (var i = 0; i < handleBeingHeld.length; i++) { if (!handleBeingHeld[i]) continue; - newX = startX - currentX; - newY = currentY - startY; + newX = Math.abs(startX - currentX); + newY = Math.abs(currentY - startY); + + console.log(newX, newY); moveAmount = max(min(newX, newY), 0);