You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Floating file header jumps to top on sorting #15438
What should be the expected behaviour btw, if you sort everything, keeping the scrolling position would most likely not show the relevancy the user is looking for?
🤔 what @skjnldsv said about scrolling to show relevant info makes sense to me as well, on checking other apps it truly is a mixed bag. Windows file explorer and Google Drive scroll on changing sort order, while Dropbox, Nautilus on Ubuntu and the other apps @tobiasKaminsky mentioned don't scroll. I would go with scrolling for same reason @skjnldsv mentioned, ccing @jancborchardt here
We do a hard refresh on re-sorting, so pretty difficult to keep the position anyway?
There is some options possible. It's easy to remember the top-to-scroll-position pixel amount, but depending on what we wanna achieve, some stuff can and can't be done :)
What about this:
If a file is focused, we scroll to its position on a sorting change
If a file is selected (or a group) we scroll to the first selected item
Activity
17 remaining items
skjnldsv commentedon Mar 2, 2023
What should be the expected behaviour btw, if you sort everything, keeping the scrolling position would most likely not show the relevancy the user is looking for?
tobiasKaminsky commentedon Mar 2, 2023
This is what I am used to on other file listings, e.g. Dolphin on Linux, or Thunderbird.
skjnldsv commentedon Mar 2, 2023
Good from me 🤷♂️
@jancborchardt @nimishavijay, you good with that?
nimishavijay commentedon Mar 2, 2023
🤔 what @skjnldsv said about scrolling to show relevant info makes sense to me as well, on checking other apps it truly is a mixed bag. Windows file explorer and Google Drive scroll on changing sort order, while Dropbox, Nautilus on Ubuntu and the other apps @tobiasKaminsky mentioned don't scroll. I would go with scrolling for same reason @skjnldsv mentioned, ccing @jancborchardt here
jancborchardt commentedon Mar 2, 2023
We do a hard refresh on re-sorting, so pretty difficult to keep the position anyway?
I would also agree with @skjnldsv and @nimishavijay’s research in that it makes a bit more sense to scroll to top since the whole content changed.
A quick animation that scrolls to the top of the list would of course be nice, but yeah with the hard refresh it’s difficult.
skjnldsv commentedon Mar 2, 2023
There is some options possible. It's easy to remember the top-to-scroll-position pixel amount, but depending on what we wanna achieve, some stuff can and can't be done :)
What about this:
skjnldsv commentedon Mar 2, 2023
Also, keep in mind files to vue is still ongoing, a hard refresh might be avoidable here (just re-rendering might be possible)