Repository navigation
Keep a caption draggable with the text tool up, and move the magnifier aside - #23
Merged
Merged
Conversation
…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.
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.
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.
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.