v1.5.3 "Zoom lock" not working
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 267
- Joined: Sun Apr 23, 2023 5:14 am
v1.5.3 "Zoom lock" not working
I wanted to zoom 100% and switch between photos at that zoom level
1. selected zoom 100
2. selected "zoom lock" (in right click menu)
switched to next photo and zoom lock is selected however zoom moved from 100% to fit to screen.
1. selected zoom 100
2. selected "zoom lock" (in right click menu)
switched to next photo and zoom lock is selected however zoom moved from 100% to fit to screen.
-
- Author of XnView
- Posts: 44355
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- XnThusiast
- Posts: 4115
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: v1.5.3 "Zoom lock" not working
Could the following tread be relevant: Selected zoom percentage will not hold ?
-
- Posts: 267
- Joined: Sun Apr 23, 2023 5:14 am
Re: v1.5.3 "Zoom lock" not working
Yeah thanks, had to uncheck Auto image size, Lock Zoom was not working because Auto image size was set to Fit image to window.cday wrote: ↑Fri Sep 01, 2023 8:43 am Could the following tread be relevant: Selected zoom percentage will not hold ?
Perhaps in next version you could change behavior so Lock Zoom overrides Auto image size option?
-
- XnThusiast
- Posts: 4115
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: v1.5.3 "Zoom lock" not working
I think this seemingly recently introduced setting needs to be reviewed, I am not sure why it was introduced and it possibly hasn't been sufficiently thought through...FKCapitalism2 wrote: ↑Fri Sep 01, 2023 1:06 pmYeah thanks, had to uncheck Auto image size, Lock Zoom was not working because Auto image size was set to Fit image to window.cday wrote: ↑Fri Sep 01, 2023 8:43 am Could the following thread be relevant: Selected zoom percentage will not hold ?
Perhaps in next version you could change behavior so Lock Zoom overrides Auto image size option?
-
- XnThusiast
- Posts: 1797
- Joined: Sat May 09, 2015 9:37 am
Re: v1.5.3 "Zoom lock" not working
it works and overrides alreadyFKCapitalism2 wrote: ↑Fri Sep 01, 2023 1:06 pmPerhaps in next version you could change behavior so Lock Zoom overrides Auto image size option?
0. app with default settings
1. zoom to any value, eg 50%
2. press Lock zoom
3. goto prev/next image
zoom remains at 50%
4. close app
1. open app
- zoom auto resets to 100% and
- "Auto zoom" still the same as default - "Fit image to window.."*, but
- Lock is still on
2. zoom to any value, eg 50%
3. goto prev/next image
zoom remains at 50%
* this is the reason for this post. You need to:
- change zoom to any value and return to 100% OR
- just set Auto zoom to "No fit" (no need to touch Lock) as you've figured out already
Last edited by user0 on Fri Sep 01, 2023 1:45 pm, edited 1 time in total.
-
- Posts: 267
- Joined: Sun Apr 23, 2023 5:14 am
Re: v1.5.3 "Zoom lock" not working
Pardon i was too quick to write off this bug, actually after more testing it still not working properly.
I if i set Auto image size to no fit and set Zoom to 10% then select Zoom Lock it works for exactly one image switch, when i press Page Up / Page Down to switch image once, zoom lock works, when i press second time Page Up / Page Down is broken, because Auto image size gets somehow reset back to Fit image to window.
Ahh i guess because of this
I if i set Auto image size to no fit and set Zoom to 10% then select Zoom Lock it works for exactly one image switch, when i press Page Up / Page Down to switch image once, zoom lock works, when i press second time Page Up / Page Down is broken, because Auto image size gets somehow reset back to Fit image to window.
Ahh i guess because of this
Not overrides for me.user0 wrote: ↑Fri Sep 01, 2023 1:21 pmit works and overrides alreadyFKCapitalism2 wrote: ↑Fri Sep 01, 2023 1:06 pm Perhaps in next version you could change behavior so Lock Zoom overrides Auto image size option?
Last edited by FKCapitalism2 on Fri Sep 01, 2023 1:48 pm, edited 3 times in total.
-
- XnThusiast
- Posts: 4115
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: v1.5.3 "Zoom lock" not working
@user0:
Can it ever be be right that a setting overrides an active menu option?
Can it ever be be right that a setting overrides an active menu option?
-
- XnThusiast
- Posts: 1797
- Joined: Sat May 09, 2015 9:37 am
Re: v1.5.3 "Zoom lock" not working
yep, this is absolutely normal
the "Lock" options are intended for this purpose, but usually they are sessionwise and reset after app restart
if user wants persistent changes, he goes to the Settings
however, I would improve current mode indication, eg via statusbar (d)
-
- Posts: 267
- Joined: Sun Apr 23, 2023 5:14 am
Re: v1.5.3 "Zoom lock" not working
Again in my case it there is no override of "Auto image size" by "Lock Zoom" option, seems like "Lock Zoom" option is ignored if "Auto image size" is on.user0 wrote: ↑Fri Sep 01, 2023 2:40 pmyep, this is absolutely normal
the "Lock" options are intended for this purpose, but usually they are sessionwise and reset after app restart
if user wants persistent changes, he goes to the Settings
however, I would improve current mode indication, eg via statusbar (d)
-
- XnThusiast
- Posts: 1797
- Joined: Sat May 09, 2015 9:37 am
Re: v1.5.3 "Zoom lock" not working
try to reproduce on clean portable versionFKCapitalism2 wrote: ↑Fri Sep 01, 2023 3:27 pm Again in my case it there is no override of "Auto image size" by "Lock Zoom" option, seems like "Lock Zoom" option is ignored if "Auto image size" is on.
try to follow my steps
since you need 100% zoom level - "Lock" is not required, just change "Auto image size" to "No fit" in Menu/Settings
-
- XnThusiast
- Posts: 4115
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: v1.5.3 "Zoom lock" not working
The menu Lock zoom option overrides the menu Auto image size option, but a settings option that does the same, while leaving the menu Auto image size option active doesn't seem right? Maybe the Auto image size option should be grayed out when the settings option is enabled?
Certainly something in the interface design is currently causing confusion...
-
- XnThusiast
- Posts: 1797
- Joined: Sat May 09, 2015 9:37 am
Re: v1.5.3 "Zoom lock" not working
agree
zoom settings feels overengineered
make sense, but since "Auto image size" group behaves like setting AND current state indicator, I would just put it in the same list with all other options (like in ACDSee and FastStone)cday wrote: ↑Fri Sep 01, 2023 5:38 pm The menu Lock zoom option overrides the menu Auto image size option, but a settings option that does the same, while leaving the menu Auto image size option active doesn't seem right? Maybe the Auto image size option should be grayed out when the settings option is enabled?
-
- XnThusiast
- Posts: 4115
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: v1.5.3 "Zoom lock" not working
Does anyone have a link to the thread that resulted in the Reset 'Auto Image size' setting with next/previous file being introduced?
-
- Posts: 58
- Joined: Fri Sep 24, 2021 3:31 pm
Re: v1.5.3 "Zoom lock" not working
It's old, if you wanna know. It's already in Version 0.95 (Jan 15 2020) or even earlier.
To avoid confusion right away: the Auto image size options in the settings window are the changeable permanent settings, and temporary settings that only affect the tab will be scooped from them. The Auto image size settings in the menu are temporary settings for the current tab. These are two different things and the menu settings should definitely not be "greyed out")
At the time, I spent some time figuring this out and getting the Lock zoom to work without it automatically resetting. Then I came to the conclusion that the Lock zoom is considered by the program as a kind of "auto image size" (auto resize to user defined %) variant, just taken out of this menu, and in essence it is. Lock zoom is an additional feature to No fit in the menu that allows you to not reset other "Fit image" options in the menu, so that you can return to them by disabling Lock zoom. You can verify this by turning off/on (two actions!) Lock zoom (and probably switching the image to the following) - auto image size in the menu will change to No fit.
The Lock zoom setting has two hidden tricks in the xnview.ini file.
lockZoom is to enable/disable Lock zoom. And lockZoomFlag is the transformation of Lock zoom menu parameter into the mode of permanent settings (as Auto image size in settings window) or temporary ones (affect only the tab, as Auto image size in the menu, and scooping - but not changing! - the setting from lockZoom). lockZoomFlag=false means that the lockZoom setting will be the unchangeable permanent setting, and the Lock zoom setting in the menu will only be temporary. If you enable a combination of lockZoom=true and lockZoomFlag=false, then the program will always start with Lock zoom enabled, and disabling it in the menu will be temporary.