ListView scrolling sometimes jumps up and down when doing high-resolution scrolling
While @otte fixed the most obvious symptom of issue #2971 (closed) via !5584 (merged), the problem remains present under some conditions. It is less frequent than before, but it can still happen.
Applications using ListView, whether in GTK 4.12.4 and earlier or in 4.13.6, can trigger the "ListView scroll jumps up and down" bug in these ways (as I've seen it in the latest versions of Nautilus and Fractal):
-
By click-and-dragging (and holding) the scrollbar in Nautilus 45/46's grid view
(drag to various positions, until you hit one where the jitter happens, then hold position)
Here is a video demonstrating the issue in Nautilus (built from git with GTK 4.13.6, but it also affects version 45.x with GTK 4.12.4). There are various grades of severity in the symptoms, the occurrences near the end of the video are more severe. -
By using a touchpad's (or presumably touchscreen's) kinetic scroll (i.e. gesturing it to scroll) in Fractal 5 or Nautilus' grid view.
When it comes to the kinetic scroll method, it seems easier to trigger in Fractal than in Nautilus.
Here is a video showing the issue with Fractal (I am presuming it uses ListView, and that it is at least partially affected by the same issue and not just that it loads/inserts some things on the fly; in any case, it also happens with kinetic scroll in Nautilus' grid view, so we can rule out Fractal being the sole app affected in this way)
I'm guessing that the common thread here is that it's what I'd call "high resolution" scrolling, i.e. with "continous" devices (dragging a mouse, kinetic motion, etc.), and it maybe doesn't happen (or not as frequently) with "discrete" scrolling (ex: with a traditional mouse wheel that "clicks" like a ratchet from one scroll position to another).
I have tested this on Fedora 39 with the Wayland GNOME session.