Repository navigation
Raise the frame move threshold to 5 screen pixels - #5
Merged
Merged
Conversation
added 2 commits
November 21, 2026 17:04
A press on a frame became a move after 3 screen pixels. Zoomed out, that small wobble during a click moved the board by many world units and committed a revision: at fit zoom 0.29, a 4 px wobble moved it 14 units. Moves now start at 5 px. Resize handles keep 3 px, since they are pressed on purpose and small resizes need them.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A click meant to select a board often moves it a little, so selecting and moving are hard to tell apart.
Cause
A press on a frame becomes a move once the pointer travels 3 screen pixels. The move is applied in world units (screen delta divided by zoom). When zoomed out, a small wobble during a click therefore moves the board a long way and commits a revision. At fit zoom 0.29, a 4 px wobble moved the board 14 units.
Fix
resize-reorderchecks a 4 px resize.Verification
move-select/drag-thresholdblock fails onmain(doc.@A.xis 14, a new revision) and passes with the fix. A 4 px wobble only selects. A 6 px drag moves the board and commits one revision.cli-sessions,pages,layers, thecommentsblocks (run one at a time after a headless browser crash),screens-cli check,npm testand typecheck.move-select/sel-marquee,resize-reorder/resize-groupandresize-reorder/resize-aspectfail at the same steps onmain. These failures existed before this change.Not changed
When a board is the only selection, its live page takes the pointer, so you drag it by its title. Dragging the page body interacts with the page. That is the designed behavior, so this PR leaves it unchanged.