From 438c1ce9ef9644c87726acd9900797b0875ea2e2 Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Mon, 22 Jun 2026 20:01:28 -0400 Subject: [PATCH] fix grabbing and moving --- static/javascript/resize_photo_dialouge.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);