Scroll position doesn't remain consistent when swapping between views
Affected version
- Nightly flatpak: Yes
- Other: Fedora 38, version 44.2
Steps to reproduce
- Open a large enough directory to have substantial scrolling
- Have nothing focused
- Repeatedly swap between icon view and column view (keyboard shortcuts or button)
Current behavior
Observe the scroll position walks up the directory a bit each cycle, eventually reaching the top.
Expected behavior
Repeatedly swapping back and forth more than twice should reach a steady state where no more scrolling happens. Either the top or bottom file should stay consistent, modulo the number of columns in the grid.
Additional information
gtk#4237 (closed) There are similar scrolling issues like: #2804
I ran into a similar problem in my application and I worked around it, as much as I could, by scrolling based on the last fully visible child. Column view was also very sensitive about exactly when in the process I scrolled.