From 520728c62bef21d762b3ab71b5b9ead17e1af067 Mon Sep 17 00:00:00 2001 From: mikael-lovqvists-claude-agent Date: Sat, 21 Mar 2026 01:02:24 +0000 Subject: [PATCH] Allow grid corners to be dragged outside image bounds Co-Authored-By: Claude Sonnet 4.6 --- public/views/grid-setup.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/views/grid-setup.mjs b/public/views/grid-setup.mjs index 8b97117..3a634cc 100644 --- a/public/views/grid-setup.mjs +++ b/public/views/grid-setup.mjs @@ -152,10 +152,7 @@ export class Grid_Setup { const sp = this.#screen_pos(e); if (this.#drag_idx !== -1) { const img_pos = this.#world_to_img(this.#to_world(sp)); - this.#corners[this.#drag_idx] = { - x: Math.max(0, Math.min(this.#img.width, img_pos.x)), - y: Math.max(0, Math.min(this.#img.height, img_pos.y)), - }; + this.#corners[this.#drag_idx] = img_pos; this.#draw(); } else if (this.#panning) { this.#cam_x += sp.x - this.#pan_last.x;