feat: add hint around canvas panning #4159
Merged
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.
Many users don't know how to pan canvas. While we will add a separate pan tool shortly, we should nevertheless teach people how to move canvas in a more efficient way.
Added a hint around canvas panning, when a
selection
tool is active, but nothing is selected — the reasoning for the latter is we show specific hints when certain elements are selected (arrow, line...) or when doing some action while selection tool is active (resizing...). So it's best we don't show the canvas panning hint all the time as it'd not be consistent and to ensure the hint doesn't appear as related to selecting.Not showing on Mobile. This will still show on tablets. We will need a better way to discern devices that don't have a keyboard or mouse attached. One way is to detect in which way the selection tool was selected (
pointerType
/keyboard) — we're already doing that for image tool, but we need to figure out a state management for this so it propagates to HintViewer.