Repository navigation
Make mouse panning easier to find (1.7.6) - #187
Merged
Merged
Conversation
Add a hand cursor for every pan, H to switch to the Pan tool and back, and name the ways to pan in the Pan tooltip and the mouse-mode notices. With Mouse drawing off, Space or H with a left drag now pans instead of moving containers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A user asked for an easier way to pan with a mouse, and named H from Figma and Space as the usual conventions. The application already panned with Space, the middle button, the right button, and a Pan button, but nothing on screen showed it: the pointer stayed an arrow, the Pan tooltip said only "Pan", and the mouse-mode notices did not mention panning. Figma, Miro, Canva, and Microsoft Whiteboard all use Space, and Figma and Miro use H for the Pan tool.
What changes
GrabCursorsdraws both at the monitor's pixel size and encodes them as a.curin memory. The cursor is refreshed when Space or H is pressed and when a pan ends, because an assigned cursor otherwise appears only at the next mouse move. A pen in range keeps the cursor.README.md,site/shortcuts.html, and the navigation table insite/guide.htmlname the ways to pan.Testing
dotnet build Whiteboard.sln -c Releaseis clean, both smoke harnesses pass, andrelease-notes.ps1 -Mode Verify -Version 1.7.6passes.GrabCursorSmokeTestsloads both cursors through Windows at five display scales and checks that the hot spot is on the hand and the corners are transparent.SQLBI_WHITEBOARD_GRAB_CURSOR_PREVIEWwrites a preview of both hands at three sizes.The hand follows the display scale but not the Windows pointer-size accessibility setting.
🤖 Generated with Claude Code