Skip to content

Let a tool work on top of a mark again - #22

Merged
ursasi merged 1 commit into
mainfrom
fix/tool-owns-clicks
Oct 30, 2026
Merged

ursasi merged 1 commit into
mainfrom
fix/tool-owns-clicks

Conversation

@ursasi

@ursasi ursasi commented Oct 30, 2026

Copy link
Copy Markdown
Owner

A regression I introduced with "drag any mark": the mark-selection branch ran before the tool check, so with a tool up every press that landed on an existing mark grabbed the mark instead of going to the tool.

Concretely: draw a rectangle, pick the text tool, click inside the rectangle → the rectangle started moving and no caption could be placed. The pen had the same problem drawing across a shape.

Handles, caption editing and mark dragging now all require no active tool, which is the rule the rest of the overlay already follows — a tool owns the click, and Esc leaves the tool when the frame or a mark needs adjusting.

check result
rect, then text tool inside it caption editor opens (debugType into caption), text lands over the rect
no tool, drag a mark still moves
no tool, drag a corner still resizes the frame

Selecting and dragging a mark was handled before the tool check, so with a tool
up every press that landed on an existing mark grabbed the mark instead: after
drawing a rectangle the text tool could not be used inside it, and the pen could
not draw across it either. That regression came in with "drag any mark".

Handles, caption editing and mark dragging now all require no active tool, which
is the rule the rest of the overlay already follows: a tool owns the click, Esc
leaves the tool when the frame or a mark needs adjusting.
@ursasi
ursasi merged commit c54c67e into main Oct 30, 2026
1 check passed
@ursasi
ursasi deleted the fix/tool-owns-clicks branch October 30, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant