Zoom to/from the mouse pointer at any zoom level

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
Anibina
Posts: 15
Joined: Fri Apr 26, 2019 7:53 am

Zoom to/from the mouse pointer at any zoom level

Post by Anibina »

Request:
It would be nice to be able to zoom to and from the mouse pointer at any zoom level.

Issue:
When an image is zoomed out so that it has empty space around it.
When mouse wheel zooming in.

Actual behavior:
The image zooms in from the center, until the image fills the XnView MP window.

Then it starts zooming in to the mouse pointer.

For example in this screen recording, if one want to zoom in on the Preview checkbox in the top left corner.

The mouse pointer is moved to the checkbox and the mouse wheel is turned forwards. The checkbox moves up and to the left.

The mouse has to be moved to the checkbox again. And when zooming in again, then the same thing happens until the image fills the window.

screen recording (open in a new browser tab to view the animation)

2020-08-30_17-47-57.gif

Expected:
The pixels under the mouse cursor should remain under the cursor when mouse wheel zooming, no matter how much space there are around the image.

Having empty space around the image even when it's zoomed in, would also help with selecting near the edge of an image.

Currently it's easy to accidentally start resizing the window instead of dragging the selection edge, when the image edge is right next to the edge of the window.


Notes:
As can be seen in the screen recording, the same or similar issue occurs when zooming out.
The image stays glued to the window edges until either the width or height is smaller than the window,
then it starts zooming out from the center.
Anibina
Posts: 15
Joined: Fri Apr 26, 2019 7:53 am

Re: Zoom to/from the mouse pointer at any zoom level

Post by Anibina »

The following bug report sounds the like the same or similar issue.

Wheel zoom causes image/cursor re-position
viewtopic.php?f=36&t=38544

And the same issue was posted as a suggestion:
Wheel zoom causes image/cursor re-position
viewtopic.php?f=34&t=38484

The XnView author responded, that it works as expected.

But I suspect that the reproduction steps might not have been clear,
it does work as expected when the image fills the XnView MP window.

But as described above, the issue occurs when the image is smaller than the window.
Post Reply