Skip to content

Keep a caption draggable with the text tool up, and move the magnifier aside - #23

Merged
ursasi merged 1 commit into
mainfrom
fix/caption-drag-with-text-tool
Oct 30, 2026
Merged

ursasi merged 1 commit into
mainfrom
fix/caption-drag-with-text-tool

Conversation

@ursasi

@ursasi ursasi commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Two follow-ups from working on top of what is already drawn.

Captions could not be dragged with the text tool up

Captions were only pickable with no tool active, so with the text tool up a press on an existing caption started a second caption on top of it. The caption looked immovable — Snipaste drags it, and so should this.

Pressing a caption now picks it up while either state is active (no tool, or the text tool); pressing empty space still starts a new one. Other tools keep their old rule: a pen must be able to draw across a rectangle, so they own the click.

check result
caption, text tool up, drag it 270 pt down-right caption moved, object box follows
caption, text tool up, click empty space new caption editor opens
rect, pen tool, drag across it draws (unchanged)

The magnifier and colour readout hid the mark

They are there to frame a precise region, and with a tool up they cover whatever is being drawn. They are skipped while a tool is active or while a caption editor is open.

…r aside

Two follow-ups from trying to work on top of what is already drawn.

A caption could only be picked up with no tool active, so with the text tool up
pressing one started a *second* caption on top of it — the caption looked
impossible to drag, which is not what other capture tools do. Pressing a
caption now picks it up whichever of those two states the overlay is in;
pressing empty space still starts a new one.

The magnifier and its colour readout are for framing a precise region, and while
a tool is up they sit on top of the mark being drawn. They step aside then.
@ursasi
ursasi merged commit 8e6fe97 into main Oct 30, 2026
1 check passed
@ursasi
ursasi deleted the fix/caption-drag-with-text-tool 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