mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
* fix(ui): Overscroll off keeps an image smaller than the window centred (#10488) With Tools › Overscroll off, an image smaller than the window stayed wherever zooming around the pointer left it, inside the window, so zooming out drifted it off centre. #1718 measured that on Photoshop 25.4, but two reports of Photoshop itself (#10488, #4799) say it stays centred with Overscroll off. The owner chose the centred behaviour: scrollbars::clamp_axis now centres an axis on which the image is no larger than the view; a larger image still can't leave its edges, and Overscroll on keeps the free view. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): Overscroll off centres a fitting rotated image (#10488) CodeRabbit on #11085: the rotated clamp path was only tested from an already-centred view. A 600 px square at 45 degrees, started off centre in a 900-point view, now ends with its screen bounds centred. Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(ui): keep the rotated centring test within rustfmt's width Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>