Switching full screen resets zoom

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

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

Switching full screen resets zoom

Post by FKCapitalism2 »

When using Middle Mouse Button to switch to Full Screen view without menu zoom always gets reset e.g. i zoomed 100% then i click Middle Mouse Button to switch full screen, hide menus and zoom resets to fit to screen, same when switching back from full screen view.

Ideally hiding menu should not interfere with workflow.
User avatar
xnview
Author of XnView
Posts: 49052
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Switching full screen resets zoom

Post by xnview »

you have not that when pressing F11?
jkm
Posts: 764
Joined: Sat May 11, 2024 12:43 am

Re: Switching full screen resets zoom

Post by jkm »

This is not a bug, it's a setting.

When switching into fullscreen mode (either with a mouse button as defined in Settings:Interface:Switching modes, or using the shortcut key (default F11)) the zoom is controlled by the Auto Zoom setting in Settings:Viewer:Fullscreen

If you change that setting to "No fit" then switching into fullscreen mode will not alter the currently selected zoom setting. All the other options for that setting fit the image to the screen in various ways, which is what you're seeing.

Note that this is distinct from the "Auto zoom" setting found in Settings:Viewer:Zoom.
User avatar
user0
XnThusiast
Posts: 3198
Joined: Sat May 09, 2015 9:37 am

Re: Switching full screen resets zoom

Post by user0 »

xnview wrote: Thu Oct 15, 2026 8:25 am you have not that when pressing F11?
nope

need to have ability to preserve user's manually chosen zoom level
when switching between Normal and Fullscreen modes, without disabling or changing autozoom for either mode

how about adding new explicit setting?
☑ Keep manual zoom level when switching modes
eg
1. when user manually changes zoom level, store it in a variable (var resets when 'Navigation resets zoom' is enabled)
2. when switching modes, if variable is set, use that zoom level in new mode without changing its autozoom setting
FKCapitalism2
Posts: 433
Joined: Sun Apr 23, 2023 5:14 am

Re: Switching full screen resets zoom

Post by FKCapitalism2 »

xnview wrote: Thu Oct 15, 2026 8:25 am you have not that when pressing F11?
Same behavior zoom resets when using F11 key.
jkm wrote: Thu Oct 15, 2026 8:34 pm This is not a bug, it's a setting.

When switching into fullscreen mode (either with a mouse button as defined in Settings:Interface:Switching modes, or using the shortcut key (default F11)) the zoom is controlled by the Auto Zoom setting in Settings:Viewer:Fullscreen

If you change that setting to "No fit" then switching into fullscreen mode will not alter the currently selected zoom setting. All the other options for that setting fit the image to the screen in various ways, which is what you're seeing.

Note that this is distinct from the "Auto zoom" setting found in Settings:Viewer:Zoom.
I have tried setting Settings>Viewer>Fullscreen Auto Zoom = No Fit and still using MMB or F11 resets zoom
jkm
Posts: 764
Joined: Sat May 11, 2024 12:43 am

Re: Switching full screen resets zoom

Post by jkm »

FKCapitalism2 wrote: Mon Oct 19, 2026 6:41 pm I have tried setting Settings>Viewer>Fullscreen Auto Zoom = No Fit and still using MMB or F11 resets zoom
Hmm. I suggest you test more carefully, and be specific about what you're reporting.

What I tested:
1. Double-click image in browser to open in a tab (non-fullscreen)
2. zoom to 800%
3. Hit F11 to go to fullscreen
4. Zoom level still at 800%

The above is how the app behaves with the default INI file, when Settings:Viewer:Fullscreen:Auto Zoom=No Fit

Now if you go further and for step 5 you hit F11 a 2nd time, to exit fullscreen, THEN the zoom is reset according to Settings:Viewer:Auto Zoom, because you are entering tabbed mode. The auto zoom setting controls what happens when you enter a mode. The first F11 enters fullscreen (controlled by the Settings:Viewer:Fullscreen:autozoom setting); the second F11 enters tabbed mode (controlled by the Settings:Viewer:Zoom:Autozoom setting). If what you are actually experiencing is that the zoom is reset when you exit fullscreen mode, then you need both autozoom settings set to No Fit to avoid that.