Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions faststack/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ ApplicationWindow {
if (!loupe || fs <= 0 || zs <= 0) return ""
if (uiState && uiState.isGridViewActive) return ""
var ratio = zs / fs
if (Math.abs(ratio - 1.0) < 0.03) return "Fit to window"
return Math.round(ratio * 100) + "%"
if (Math.abs(ratio - 1.0) < 0.03) return "Zoom: Fit to window (" + Math.round(zs * 100) + "%)"
return "Zoom: " + Math.round(ratio * 100) + "%"
Comment on lines +355 to +356
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use one zoom basis for both fit and non-fit labels

This change mixes two different percent bases in the same label: the fit branch shows absolute scale (zs * 100), while the non-fit branch shows relative-to-fit scale (ratio * 100). When currentFitScale is not 1.0 (common on large images), a tiny zoom change across the 3% fit threshold can make the title jump from something like Fit to window (42%) to Zoom: 104%, which is misleading because the underlying zoom barely changed. Keeping both branches on the same basis avoids this discontinuity.

Useful? React with 👍 / 👎.

}
}

Expand Down
Loading