Image view jumps when holding LMB to zoom

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: xnview, Dreamer

FKCapitalism2
Posts: 433
Joined: Sun Apr 23, 2023 5:14 am

Image view jumps when holding LMB to zoom

Post by FKCapitalism2 »

When hold left mouse button in center of image to zoom 100% then i can drag mouse - image moves around the cursor nicely.

When hold left mouse button in center of image to zoom 100% then additionally press + on numpad to zoom more e.g. 400% then drag mouse - image view jumps to upper left corner of image rather than staying in the center.

p.s. note the location of view in lower right corner of video.
You do not have the required permissions to view the files attached to this post.
FKCapitalism2
Posts: 433
Joined: Sun Apr 23, 2023 5:14 am

Re: Image view jumps when holding LMB to zoom

Post by FKCapitalism2 »

Anyone else feels its a bug?
User avatar
user0
XnThusiast
Posts: 3197
Joined: Sat May 09, 2015 9:37 am

Re: Image view jumps when holding LMB to zoom

Post by user0 »

I can reproduce

1. open large image in Viewer
2. press Shift+LMB to Zoom&Pan
3. move mouse
image moves as expected - OK

issue A
4. press +/- key
image zooms-in/out - OK
5. move mouse
image jumps to the top-left/bottom-right corner

issue B
4. scroll-up/down
image zooms-in/out - OK
5. move mouse
image does not move
User avatar
xnview
Author of XnView
Posts: 49048
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Image view jumps when holding LMB to zoom

Post by xnview »

One question about quick zoom (holding the button to zoom to 100% temporarily).
When you release the button, XnView goes back to the zoom you had before pressing it. If you change the zoom with +/- or the wheel while holding the button, what should happen on release?

a) Always go back to the zoom you had before pressing the button (quick zoom stays temporary).
b) Keep the zoom you chose while holding the button.
User avatar
user0
XnThusiast
Posts: 3197
Joined: Sat May 09, 2015 9:37 am

Re: Image view jumps when holding LMB to zoom

Post by user0 »

xnview wrote: Tue Nov 10, 2026 2:15 pm One question about quick zoom (holding the button to zoom to 100% temporarily).
When you release the button, XnView goes back to the zoom you had before pressing it. If you change the zoom with +/- or the wheel while holding the button, what should happen on release?

a) Always go back to the zoom you had before pressing the button (quick zoom stays temporary).
b) Keep the zoom you chose while holding the button.
a.
when exiting Zoom&Pan mode, restore the original zoom level
User avatar
xnview
Author of XnView
Posts: 49048
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Image view jumps when holding LMB to zoom

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.