WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141001
Scroll snap points do not work in the vertical direction
https://bugs.webkit.org/show_bug.cgi?id=141001
Summary
Scroll snap points do not work in the vertical direction
Brent Fulgham
Reported
2015-01-28 10:02:53 PST
Created
attachment 245550
[details]
Example of horizontal and vertical scroll snap points Scroll snap points work properly in the horizontal direction, but not in the vertical. See the attached example page. The top example works properly, but the bottom fails.
Attachments
Example of horizontal and vertical scroll snap points
(2.72 KB, text/html)
2015-01-28 10:02 PST
,
Brent Fulgham
no flags
Details
Patch
(5.87 KB, patch)
2015-01-28 16:44 PST
,
Brent Fulgham
bdakin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2015-01-28 10:04:16 PST
The problem seems to be in EventHandler::defaultWheelEventHandler: When scrolling in the horizontal direction, we do not mark the wheelEvent as 'default handled', which allows the event to bubble up and get handled by the snap logic. When scrolling in the vertical direction, we do mark the event as 'default handled', which prevents us from bubbling the event up to the snap logic.
Radar WebKit Bug Importer
Comment 2
2015-01-28 10:04:37 PST
<
rdar://problem/19632089
>
Brent Fulgham
Comment 3
2015-01-28 10:21:26 PST
Actually, it looks like the difference might be in ScrollAnimatorMac::handleWheelEvent. We ask the ScrollAnimator to handle the wheel event directly in the vertical case, rather than passing it along to the scroll elasticity controller.
Brent Fulgham
Comment 4
2015-01-28 16:44:59 PST
Created
attachment 245580
[details]
Patch
Beth Dakin
Comment 5
2015-01-28 16:51:53 PST
Comment on
attachment 245580
[details]
Patch R=me assuming this does not break rubber-banding in overflow areas and iframes.
Brent Fulgham
Comment 6
2015-01-28 18:15:45 PST
Committed
r179324
: <
http://trac.webkit.org/changeset/179324
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug