mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
A Zoom tool click or wheel zoom keeps the clicked spot under the pointer, so the view centre moves off the image's middle. The window then grew to the image's size around that off-centre view: a 400x300 image zoomed to 200% about (50, 50) showed grey on the left and top and lost its right and bottom edges. The size also left out the 12 pt scrollbars, which are drawn over the canvas and hid the image's right and bottom edges. The window now makes room for the scrollbars, and a window that grows around the whole image centres it in the area the scrollbars leave free (any flip, rotation, pixel aspect and display scale). A window the screen caps keeps the zoomed spot where it is. Scrubby zoom and the Animated Zoom hold re-anchor the view only when the zoom changes, so their release frame and the frames at the zoom limit keep that centred view. A maximized or full-screen window keeps the size the user gave it. Co-authored-by: Nguyễn Minh Long <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>