GNOME Bugzilla – Bug 728284
[treeview] Graphics artifact when scrolling with hover-selection
Last modified: 2014-04-29 18:09:55 UTC
Created attachment 274389 [details] Screencast of reproducer When scrolling with mouse wheel of two-finger on touchpad the treeview does not seem to get refreshed and you get bit of the selection stay on different rows and not get updated. This was reported on Maps in bug #728116 but I managed to reproduce it with the attached program. See also video that shows the behavior.
Created attachment 274390 [details] code to reproduce This just adds a treeview inside a scrolled window and adds 100 elements. Scrolling with two fingers triggers bug.
*** Bug 728631 has been marked as a duplicate of this bug. ***
Created attachment 275401 [details] [review] treeview: Fix prelight redraw when adjustment changes When the adjustment changes (due to e.g. a mouse wheel scroll) we update the prelight. The part that un-prelights the previous prelight was broken by the the pixel cache, as it called update_prelight in the middle of the scrolling operation, where the windows were moved but the tree_view->priv->dy was not changed to the new value. This caused the updates to the pixel cache to go to the wrong place. We fix this by fully doing the scroll before we update_prelight().
Attachment 275401 [details] pushed as c0a87a8 - treeview: Fix prelight redraw when adjustment changes
*** Bug 709992 has been marked as a duplicate of this bug. ***