Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 889d08985b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| max( | ||
| transformation.scaleMetadata.initialScale.scaleX, | ||
| transformation.scaleMetadata.initialScale.scaleY, | ||
| ), |
There was a problem hiding this comment.
Reset double-click zoom to baseline user zoom
When the image is already zoomed in, this path resets with zoomFactor = max(initialScale.scaleX, initialScale.scaleY), but the surrounding logic (userZoom > 1.01f) is working in user-zoom units where the baseline is 1f. Because initialScale depends on media and viewport size, double-click can reset to a non-baseline zoom (e.g., <1 for large images or >1 for small images), so the toggle no longer reliably returns to the normal fitted view. Use a baseline user zoom (1f) or resetZoom() for the zoom-out branch.
Useful? React with 👍 / 👎.
No description provided.