Describe the bug
When in windowed mode with the "Resize on Zoom" setting enabled, the zoom behaves differently than in fullscreen mode when zooming with a mousewheel. This only occurs when the image isn't cropped, i.e. the scaled resolution fits entirely inside the window.
To Reproduce
Steps to reproduce the behavior:
- Open Settings
- In the Visuals category, enable
Resize on Zoom
- In the Controls category, set
Wheel
to Zoom
- Exit Settings
- Enter full-screen mode
- Try zooming with the mousewheel for intended behavior
- Exit full-screen mode
- Try zooming with the mousewheel for comparison
Expected behavior
The image should zoom around the position of the mouse cursor, using the location of the pointer as the transformation origin. Instead, in windowed mode, it zooms around the center of the window, having the same behavior as keyboard-triggered zooming.
Specs:
- OS: Windows 10.0.19045.6937 Pro 64-bit
- Program version: 4.0.0 (Build 2026-03-06)
Screenshots:
https://github.com/user-attachments/assets/02f15b0c-c9c5-4416-accc-57086a588275
Describe the bug
When in windowed mode with the "Resize on Zoom" setting enabled, the zoom behaves differently than in fullscreen mode when zooming with a mousewheel. This only occurs when the image isn't cropped, i.e. the scaled resolution fits entirely inside the window.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The image should zoom around the position of the mouse cursor, using the location of the pointer as the transformation origin. Instead, in windowed mode, it zooms around the center of the window, having the same behavior as keyboard-triggered zooming.
Specs:
Screenshots:
https://github.com/user-attachments/assets/02f15b0c-c9c5-4416-accc-57086a588275