-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements for view positioning when scrolling #791
Conversation
When True, always keep the cursor centered while scrolling as is the current behaviour. Otherwise, cursor ends up at top / bottom when scrolling up / down.
The command moves the view, keeping the cursor on the same position, in library and thumbnail mode.
The This is probably, because in On top of that, I was able to observe two crashes.
I hope this helps. I do not have time to look into the code atm. But let me know if you need anything else. Btw, I like the option of having a not-centered view a lot (thanks for the idea @Markuzcha and the implementation @karlch) 😊 |
Thanks @jcjgraf for testing this so quickly! I can reproduce both, hopefully I find the time this afternoon for a detailed investigation 😊 EDIT: Quick fix seems to fix the setting, but I have weird issues with zz / zt / zb now, needs more investigation later. |
None is not a valid scroll hint and the default is EnsureVisible in Qt. Thus, the previous behaviour: 1) Never enforces the scroll_to_center setting, as the hint was never None. 2) Crashed, when no scroll hint was passed (as in thumbnail when called directly with vimiv).
@jcjgraf mind giving this another shot? I am no longer able to reproduce any issues with zt / zz / zb I had, unsure if there were unstaged changes or I messed up somehow 😕 |
I just gave it a shot @karlch - It works like a charm ! Thank you very much, it's even more pleasure to use it now. (PD.: Would be great to have it updated in the AUR as well.) |
@karlch Everything works as expected 🎉 @Markuzcha It is in the AUR git package as soon as this is merged, and in the general AUR package, once a new version of vimiv gets released. |
Awesome, thanks to both of you for testing! 😊 As @jcjgraf mentioned, the changes are now available via the AUR git package. |
Adds a new setting
scroll_to_center
that controls whether the view is always centred when scrolling along with the:move-view
command that can position the view at top / center / bottom with thezt
/zz
/zb
keybindings.