d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.09k stars 478 forks source link

View position resets when image is resized/rescaled #979

Open mirh opened 3 years ago

mirh commented 3 years ago

System information:

To Reproduce

Steps to reproduce the behavior:

  1. Open a (preferably big) image
  2. Set some scale mode (in a preferably small window)
  3. Move elsewhere in the picture
  4. Change scale mode (or even just set again the same one)

Actual behavior:

View position resets back on the default (i.e. top, or center image on viewer)

Expected behavior:

Whatever the current view position should be preserved

Additional context:

EDIT: actually, this seems to happen even when you toggle the toolbar for example. So maybe it's something a bit deeper than just scaling.

mirh commented 3 years ago

Toolbar resizing seems to have been fixed somewhere by 8.2.6.6. Nevermind, when you are in fullscreen it still happens.

mirh commented 2 years ago

This is likely a consequence of #437.