Repository navigation
Zoom out from Fit goes to the step below the scale Fit shows (#307) - #308
Merged
Merged
Conversation
It went to a fixed 50%, so with Fit below 50% (a large screenshot in a narrow window) the first press of zoom out zoomed in. It now uses the step below the current scale, as it does when Fit is off. With Fit between 50% and 100% that is still 50%. Zoom in from Fit still goes to 100%. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V8rjzo3Qk8M7WcT9RYfYRW
Owner
Author
|
Windows: GO. Tested preview 0.3.1-pr308 (run 39494608450, 9aa162c) on Windows 11 at 150% scaling, with a 2580×1560 image and the status bar's − / + (posted clicks). The zoom label was read from captures after each step.
On 0.3.1-pr303c (without this fix), the same case (1) went 33.4% → 50% → 25% (#307). 🤖 Generated with Claude Code |
danjboyd
marked this pull request as ready for review
October 20, 2026 21:03
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #307, for 0.3.2 (Dan: zoom-out fix only).
-zoomOut:went to a fixed 50% while Fit was on. With Fit below 50%, the first press of zoom out zoomed in: a large screenshot in a narrow window, which #303's 600 pt Windows minimum makes more common. It now usesnextZoomScaleBelow:on the scale shown, as it already did with Fit off:Zoom in from Fit is unchanged: it goes to 100%.
Tests (FitToWindowProbe)
testZoomOutFromAFitBelowHalfGoesLowerfails on main ("0.5 ≥ 0.315").testZoomOutFromAFitAboveHalfGoesToTheNextStepDown.testZoomInFromFitGoesToActualSize.🤖 Generated with Claude Code
https://claude.ai/code/session_01V8rjzo3Qk8M7WcT9RYfYRW