mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-31 05:56:55 -06:00
Ctrl/Cmd + wheel and pinch changed the zoom but left the scroll offset alone, so the slide grew from the canvas corner (from its top-left once it was larger than the window) and the spot under the pointer slid away. The pointer position was read but never used. Zoom In/Out, the status-bar slider and the Zoom dialog had the same effect. The canvas now remembers last frame's slide rect and scale. When the scale changes it sets the offset so the slide point under the anchor stays put: the pointer for wheel and pinch zoom, the middle of the canvas for the commands. Once the slide fits the window it is centred as before. Wheel and pinch zoom take effect in the same frame instead of the next. Fixes #106 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>