mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
* Canvas zoom: Photoshop's range, ladder and ⌥-wheel step; no slide at the limit Measured on Photoshop 25.4 (exact zoom read by script, view position by screenshot registration): - ⌥ + wheel: ×1.1 a notch around the pointer (was ×1.05); - the zoom runs up to 12800 % and down to where the document's shorter side is 2 px; a wheel notch past a limit lands on it exactly and further notches change nothing; - Zoom In / Zoom Out and a Zoom tool click step along 0.1 … 66.67, 100, 200 … 800, 1200, 1600, 3200, 6400, 12800 %, from any zoom to the next rung; - with Overscroll off, an image smaller than the view stays where zooming put it, inside the view, instead of being re-centred. PhotoCraft capped the zoom at 3200 % without meaning to: the status bar's zoom field (and the Navigator's slider) clamped it and wrote it back every frame. Past 3200 % each ⌥-wheel notch zoomed around the pointer and the field pulled the zoom back, so the image slid towards the pointer. All zoom paths now share `zoom_levels` (range, ladder, clamp), and the fields always include the current zoom. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Zoom: Print Size, 200 % and Fit Layers on Screen clamp through zoom_levels too Review of #1718: `view.twoHundredPercent` / `view.printSize` and `view.fitLayersOnScreen` still clamped to 1-6400 % on their own. They now use `zoom_levels::clamp` like every other zoom path: Print Size at 1 ppi gives 7200 % (it was cut to 6400 %), and fitting a 1 px layer stops at 12800 %. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Wheel zoom: a notch applies on the frame it arrives (from #1490) Folded in from @Jeremy8776's #1490, as agreed in review: zooming reads this frame's wheel events (`Input::raw`) instead of egui's smoothed delta, so each notch is one ×1.1 step on the frame it arrives, with no easing over the next frames (his frame-by-frame recordings of Photoshop). The smoothed tail neither zooms nor turns into a pan when Alt is released; panning still uses the smoothed delta. Zoom with Scroll Wheel uses the same ×1.1 notch (assumed, not measured). The Filter Gallery's and Liquify's own preview zooms keep their 3200 % caps, now with a comment saying why: they aren't the canvas. Co-authored-by: Jeremy <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: Jeremy <[email protected]>