Bug 175468

Summary: [GTK] stop kinetic scrolling when a zero movement is reached
Product: WebKit Reporter: Christian Hergert <christian>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, mcatanzaro
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mcatanzaro: review+

Description Christian Hergert 2017-08-10 18:22:24 PDT
When the kinetic scrolling reduces it's speed, there can be multiple frames where the movement is zero pixels (followed by a 1 pixel movement later on).

This causes a "jitter" right at the end of the scroll which makes it feel less quality than other platforms. Instead, we should just clamp it as soon as we get a zero movement.

This is what I put in Gtk+ to avoid the same issue.

  https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-22&id=4f63d839550f7a9038b391e7d3e1e6fc8bdfafa6
Comment 1 Carlos Garcia Campos 2017-08-11 06:33:50 PDT
Created attachment 317927 [details]
Patch

Thank you Christian!
Comment 2 Carlos Garcia Campos 2017-08-13 23:23:43 PDT
Committed r220638: <http://trac.webkit.org/changeset/220638>