Feat(Canvas): Add canvas zoom on Ctrl/Cmd+MMB drag. by DustyShoe · Pull Request #8965 · invoke-ai/InvokeAI
Conversation
Summary
This PR improves canvas UX for graphics tablet users by adding support for the widely used Ctrl/Cmd+MMB zoom gesture.
- Added canvas zoom on
Ctrl/Cmd+MMB. - Zoom uses continuous scaling without snap points.
- Zoom is anchored to the cursor position at drag start.
- Added custom cursor.
QA Instructions
- Open the canvas and use
Ctrl/Cmd+MMBdrag; verify vertical drag zooms in and out. - Verify the zoom is smooth and does not snap to preset zoom levels.
- Start zooming over a visible detail and verify the zoom stays anchored around the initial cursor position.
- Release
MMBand verify zoom mode exits cleanly. - Switch focus away during the gesture and verify zoom mode is cancelled cleanly.
- Verify the custom zoom cursor is shown during
Ctrl/Cmd+MMBdrag.
Merge Plan
Checklist
- The PR has a short but descriptive title, suitable for a changelog
- Tests added / updated (if applicable)
- ❗Changes to a redux slice have a corresponding migration
- Documentation added / updated (if applicable)
- Updated
What's Newcopy (if doing a release after this PR)
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