1.7.0 breaks "Zoom and Move"

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

1.7.0 breaks "Zoom and Move"

Post by winnylinny »

The new behavior breaks how XnViewMP had always treated Zoom + Move with the mouse.

If you open up an image, which auto-fits, then click and move with the mouse button? No problem. It behaves like it always has before 1.7.0.

But if you zoom in or out BEFORE using the mouse button to move around? It zooms back to 100% every time you click the mouse! This makes the feature unusable.

The way it was handled with 1.6.5 and earlier works perfectly. Now it's broken. :(

In fact, this breaks my workflow that I have to downgrade back to version 1.6.5.



These videos demonstrate how 1.7.0 breaks this feature:

This is the behavior on 1.6.5:
https://imgur.com/a/I0I8OhU




This is the behavior on 1.7.0:
https://imgur.com/a/5axFgrA


Peirre: Why did you remove the "Pan and Zoom" option? This is what made using the left mouse button work so well.
pan-and-zoom_1.6.5.png
pan-and-zoom_1.6.5.png (25.86 KiB) Viewed 3454 times
Last edited by winnylinny on Sat Mar 30, 2024 8:21 pm, edited 2 times in total.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.7.0 breaks "Zoom and Move"

Post by user0 »

winnylinny wrote: Sat Mar 30, 2024 4:44 pm Why did you remove the "Pan and Zoom" option? This is what made using the left mouse button work so well.
Settings - interface - make Mouse controls explicit

"Pan and Zoom" checkbox replaced with explicit "Zoom & move" option (zooms to 100% and move zoomed-in/out image), default shortcuts changed though:
165 - CTRL+LMB or SHIFT+RMB
170 - SHIFT+LMB

but you can change them in Settings>Interface>Mouse
Last edited by user0 on Sat Mar 30, 2024 5:28 pm, edited 1 time in total.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by winnylinny »

user0 wrote: Sat Mar 30, 2024 5:24 pm but you can change them in Settings>Interface>Mouse
That's not the issue.

The issue is that "Pan and Zoom" is broken. I explained it in my first post:
But if you zoom in or out BEFORE using the mouse button to move around? It zooms back to 100% every time you click the mouse! This makes the feature unusable.
The "Zoom and Move" with 1.7.0 is not the same as the combination of "Move" with "Pan and Zoom" enabled for versions 1.6.5 and earlier. :(
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.7.0 breaks "Zoom and Move"

Post by user0 »

winnylinny wrote: Sat Mar 30, 2024 4:44 pm But if you zoom in or out BEFORE using the mouse button to move around? It zooms back to 100% every time you click the mouse! This makes the feature unusable.
What do you mean "every time you click mouse"?
it zooms to 100% only when you press Modifier key (SHIFT*)+LMB
* I would probably prefer CTRL, since this feature is about zooming
so you can hold CTRL and scroll to zoom-in/out, then just click LMB to zoom to 100%


the only change in behavior is:
165 - it zooms to 100% only zoomed-out image (if ≤ app window size)
170 - it zooms to 100% zoomed-out AND zoomed-in image (regardless of app window size)
but I see no problem here
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by winnylinny »

I'll record a video to show you exactly what I mean.

This new behavior breaks its usage.

user0 wrote: Sat Mar 30, 2024 5:47 pm 170 - it zooms to 100% zoomed-out AND zoomed-in image (regardless of app window size)
but I see no problem here
This *IS* a problem. It makes panning broken AFTER you've already zoomed in. When you click and drag, you have no idea where you're going because it abruptly zooms back to 100% (which ruins your target), and THEN when you release the mouse button it reverts back to the zoom-level that you WANTED to pan with. It's weird and jerky.

If I'm zoomed-in at 200%, I expect to be able to pan at this level: Panning around a 200% zoomed-in image. I don't expect it to zoom-out to 100% then ricochet back to 200% depending on if I'm holding the mouse button or not. Now I'm not simply "panning". I'm playing a some weird FPS sniper-rifle "game" with XnViewMP...

This is very bad design.

With 1.6.5 and earlier, this was handled gracefully. (I attached a screenshot in my earlier post.)

If you're zoomed out smaller than 100% because of auto-fit? Then clicking the image and dragging the mouse will "Pan AND zoom". If you're already zoomed-in to a custom level? Then clicking the image and dragging the mouse will ONLY pan. (Obviously, because you've already zoomed-in to a desired custom level.) It won't "ricochet" back to 100% every time you click the mouse.


Good, 1.6.5:
pan-and-zoom_1.6.5.png
pan-and-zoom_1.6.5.png (25.86 KiB) Viewed 3417 times


Bad, 1.7.0:
1.7.0_breaks-workflow.png
1.7.0_breaks-workflow.png (40.12 KiB) Viewed 3417 times

And if you say "Then just set the left mouse button to only Move", it misses the point, because we had a perfectly good "Pan and Zoom" feature already available with 1.6.5, which we didn't have to do anything special. Is the picture shrunk/auto-fitted? It will automatically behave as a pan-and-zoom tool. Is the picture zoomed-in greater than 100%? It will behave as a graceful move tool, without ricocheting to 100% and then bouncing back after releasing the button.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by winnylinny »

I invite anyone to try this with 1.7.0:

Set the left mouse button to "Zoom and move".

Open up an image that is much bigger than your screen size window, which will "autofit" to your window.

Zoom in a small amount (still less than 100% real size) to get a better view of the details.

Now click and drag to "pan" across the image. See what happens?



Also try this:

Set the left mouse button to "Zoom and move".

Open up an image that is smaller than your screen size window.

Zoom in.

Now click and drag to "pan" across the image. See what happens?



This is what 1.7.0 now offers. Instead of a smart "pan and zoom" feature, you're left with this:

Use the broken "Zoom and move" implementation, as described above, or...

Use only the "Move" option, and lose the ability to intelligently "pan and zoom" for auto-fitted images.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.7.0 breaks "Zoom and Move"

Post by user0 »

ok, I see what you mean
you swapped default LMB and CTRL+LMB actions..

new behavior:
user0 wrote: Sat Mar 30, 2024 5:47 pm 165 - it zooms to 100% only zoomed-out image (if ≤ app window size)
170 - it zooms to 100% zoomed-out AND zoomed-in image (regardless of app window size)
can be a bug or intentional, eg due to new fit modes,
but it has nothing to do with reworked "Pan and Zoom" checkbox into "Zoom & move" option.
It just had to be done to simplify and clarify settings.

In any way, I would advise you to use default mouse settings,
since pressing modifier key for Zoom&move action is not a big deal.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by winnylinny »

user0 wrote: Sat Mar 30, 2024 7:07 pm since pressing modifier key for Zoom&move action is not a big deal.
I'll be using 1.6.5 until this gets fixed. It had a seamless, clean way to do this, but now it's broken.

I'm not going to change what keys + combinations I use to "bypass" breakage in the software.


These videos demonstrate how 1.7.0 breaks this feature:

This is the behavior on 1.6.5:
https://imgur.com/a/I0I8OhU




This is the behavior on 1.7.0:
https://imgur.com/a/5axFgrA


Whatever caused this regression, it needs to be fixed. This is a workflow issue in the image viewer.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.7.0 breaks "Zoom and Move"

Post by xnview »

"Zoom and move" must be made only when zoom < 100%
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
phaolo
Posts: 104
Joined: Tue Dec 29, 2015 11:40 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by phaolo »

I confirm that I have this issue too
viewtopic.php?p=197454#p197454

The correct behaviour in the old version was:
- if the image was "fit to window" -> a click zoomed-in (to the cursor) to 100%, then you could drag-move the pic around, until the button release zoomed-out back to "fit"
- if the image was already zoomed-in -> a click and drag just moved around. There was no zoom-out
- if the image was smaller than the screen -> no move or zoom
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by winnylinny »

xnview wrote: Mon Apr 01, 2024 2:30 pm "Zoom and move" must be made only when zoom < 100%
Pierre, this is not quite true.

"Zoom and move" must only trigger if the user has not done a manual zoom yet.

Think about it. If the image is VERY LARGE, and I zoom in just a little bit (where it no longer "fits" in my window), I DO NOT want it to keep zooming to 100% every time I click to "pan" the image.

For example, if I zoom in below 100% (but the large image no longer "fits" in my window), I won't be able to gracefully "pan" if it keeps resetting the zoom-level to 100% every time I click and drag to pan somewhere...

Basically, version 1.6.5 handled this perfectly.

Image fits to window? Clicking will zoom to 100% and let you pan (until you release the mouse button.)

You do any sort of manual zoom? Now when you click, it will ONLY pan. (It will not "zoom in/out" to 100%.)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.7.0 breaks "Zoom and Move"

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.7.1. Please check and confirm the bug fix here.
Pierre.
k1976
Posts: 3
Joined: Tue Apr 09, 2024 10:45 am

Re: 1.7.0 breaks "Zoom and Move"

Post by k1976 »

xnview wrote: Mon Apr 08, 2024 2:34 pm This problem is supposed to be fixed in XnView MP 1.7.1. Please check and confirm the bug fix here.
Not fixed for me.The pan & zoom tool under mouse options is what needs to be added back.Reverted back to 1.6.5.Works perfect on that version.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.7.0 breaks "Zoom and Move"

Post by user0 »

k1976 wrote: Tue Apr 09, 2024 10:51 am Not fixed for me.
care to elaborate
k1976 wrote: Tue Apr 09, 2024 10:51 am The pan & zoom tool under mouse options is what needs to be added back.
no its not
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.7.0 breaks "Zoom and Move"

Post by winnylinny »

xnview wrote: Mon Apr 08, 2024 2:34 pm This problem is supposed to be fixed in XnView MP 1.7.1. Please check and confirm the bug fix here.
HORRAY! It works the same as it did on 1.6.5. :mrgreen:

Thank you, Pierre!
Post Reply