GNOME Bugzilla – Bug 765493
kineticscrolling: avoid stutter at tail of kinetic deceleration
Last modified: 2016-04-24 10:49:52 UTC
This is based on an IRC discussion the other night with mclasen. Simple solution to stop the deceleration phase when it no longer has us moving by whole pixels. I tested a couple other platforms and this seems to be the same technique they apply based on my imperical evidence.
Created attachment 326624 [details] [review] kineticscrolling: avoid stutter at tail of kinetic deceleration When decelerating the kinetic scroll, we can get into a position where it looks like we are stuttering. This happens because the amount we move is so little that it takes multiple frames to make forward progress by one pixel. This prevents that by detecting when we have reached the slow stutter of the deceleration and simply stops the deceleration phase immediately.
Created attachment 326626 [details] [review] kineticscrolling: avoid stutter at tail of kinetic deceleration Cleanup styling for readability.
Review of attachment 326626 [details] [review]: Looks reasonable.
Attachment 326626 [details] pushed as 4f63d83 - kineticscrolling: avoid stutter at tail of kinetic deceleration