Skip to content

Inconsistent mouse anchor for zooming #25

@Matojeje

Description

@Matojeje

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:

  1. Open Settings
  2. In the Visuals category, enable Resize on Zoom
  3. In the Controls category, set Wheel to Zoom
  4. Exit Settings
  5. Enter full-screen mode
  6. Try zooming with the mousewheel for intended behavior
  7. Exit full-screen mode
  8. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions