I see where the confusion is. I’m picturing two distinct zoomAndScrollPosition variables which can be toggled between with z and edited by making any changes while on one or the other. For example:
‘z’ causes page to toggle to zoomAndScrollPositionB (x=0, zoom=20%)
user scrolls to x=100 and zooms to 50%
the new zoomAndScrollPositionB is set at x=100, zoom=50%
‘z’ causes page to toggle to zoomAndScrollPositionA (x=1, zoom=100%)
user scrolls to x=500 and zooms to 90%
the new zoomAndScrollPositionA is set at x=500, zoom to 90%
and so on…
at this point, if the user only hits ‘z’ over and over it just toggles between the last saved zoomAndScrollPositionA and zoomAndScrollPositionB, until user zooms or scrolls again
I’ll think about it , but I think this behaviour would be too confusing and chaotic feeling unless you 1. already knew about it And 2. were paying very close attention to your scrolling.
#1 is unlikely for most people because it’s such an unconventional interaction (eg updating keyboard shortcut behaviour based on scroll behavior) , and #2 seems mentally onerous irl.
To address the root issue, I’m making some improvements to boxes in minimap so you’ll be able to better use these as position anchors : Jump to Box Zooms to Fit - #4 by pirijan