List view - scroll position is not reset if you renavigate to a given directory

Not to be confused with the old #531 (closed) as, in particularly old versions of Thunar e.g. 4.16.8 as is used by Linux Mint 20.3 Xfce, both issues occur.

Version information

  • Thunar 4.20.7
  • openSUSE Tumbleweed Xfce live ISO snapshot 20260303

Steps to reproduce

  1. open Thunar
  2. go to Edit menu ▶️ Preferences...
  3. set the drop-down menu next to View new folders using to List View
  4. click the Close button
  5. close Thunar (required to work-around issue #1802)
  6. open Thunar
  7. navigate to a location with a lot of files that will require scrolling, e.g. /etc/
  8. scroll down some amount
  9. navigate to a different location, e.g. /home/
  10. navigate to the root of the file system i.e. /
  11. double-click on the etc directory
  12. observe how it's still scrolled to the exact point you left it at in step 6
  13. do steps 2 through 12 again but set to either Icon View or Compact View to observe how those views correctly reset the scroll position in step 10

Current behavior

If using List View, then a given directories scroll position isn't reset until you close a given Thunar window

Expected outcome

Same behavior as Icon View and Compact View - scroll position should be reset if you renavigate to a given directory a second time (not to be confused with if you hit the "back" or "forward" buttons)

Video demonstration

(also featuring unplanned visits from issue #1802) video

Edited by NM64