Bug 141298 - Scroll Snap Points animation sometimes fights user scroll gesture
Summary: Scroll Snap Points animation sometimes fights user scroll gesture
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-05 11:22 PST by Brent Fulgham
Modified: 2015-03-04 10:53 PST (History)
2 users (show)

See Also:


Attachments
Snap Point Example (2.66 KB, text/html)
2015-02-05 11:22 PST, Brent Fulgham
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2015-02-05 11:22:46 PST
Created attachment 246115 [details]
Snap Point Example

Using the attached test document, I sometimes find WebKit fighting with my scroll motion if a snap point animation starts, and I then attempt to start a manual scroll.

It seems like the animation is not being turned off when new user input is encountered.
Comment 1 Brent Fulgham 2015-02-05 11:59:50 PST
Manual Test:

1. Load the attached snap point example.
2. Partially scroll a view, so that the snap scroll kicks in and WebKit tries to slide the view back to the specified snap point.
3. While the snap point animation is running, begin a new scroll gesture to scroll the view.

Result:
Currently, you get jittering as the snap animation fights with the scrolling gesture.
Comment 2 Radar WebKit Bug Importer 2015-02-05 12:00:35 PST
<rdar://problem/19733626>
Comment 3 Brent Fulgham 2015-03-04 10:53:57 PST
This problem was corrected during other snap-point work.

The underlying problem was that certain wheel event states were not properly handled by the scroll snap animator logic. This caused the snap animation to continue to run even when the user began certain kinds of wheel gestures.

This is now resolved.