Bug 142501 - scroll-snap-points do not work very well with mechanical scroll wheel events
Summary: scroll-snap-points do not work very well with mechanical scroll wheel events
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-03-09 11:49 PDT by Brent Fulgham
Modified: 2015-06-30 18:52 PDT (History)
4 users (show)

See Also:


Attachments
Patch (11.06 KB, patch)
2015-06-28 18:04 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2015-03-09 11:49:08 PDT
Although scroll-snap-points work nicely with momentum-capable gestures, older mechanical wheel (or roller ball) pointing devices do not seem to reliably trigger the snap animation. This needs to be corrected.
Comment 1 Radar WebKit Bug Importer 2015-03-09 11:49:44 PDT
<rdar://problem/20093511>
Comment 2 Brent Fulgham 2015-03-09 12:09:42 PDT
The problem is that we trigger the animation on the "scroll end" phase, which we never receive for mechanical wheels. This is similar to the difficulty in scroll latching.

We may need to create some kind of wheel event metric that trigger the animation event if a sufficient amount of time passes from the last wheel event.
Comment 3 Wenson Hsieh 2015-06-28 18:04:55 PDT
Created attachment 255734 [details]
Patch
Comment 4 Brent Fulgham 2015-06-30 18:01:26 PDT
Comment on attachment 255734 [details]
Patch

I think this looks good. r=me.
Comment 5 WebKit Commit Bot 2015-06-30 18:52:13 PDT
Comment on attachment 255734 [details]
Patch

Clearing flags on attachment: 255734

Committed r186160: <http://trac.webkit.org/changeset/186160>
Comment 6 WebKit Commit Bot 2015-06-30 18:52:16 PDT
All reviewed patches have been landed.  Closing bug.