fix grabbing and moving

This commit is contained in:
2026-06-22 20:01:28 -04:00
parent 04b01dbf27
commit 438c1ce9ef
+4 -2
View File
@@ -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);