WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
130441
WebKit2 View Gestures: Swipe gesture can track vertical movement instead of horizontal movement
https://bugs.webkit.org/show_bug.cgi?id=130441
Summary
WebKit2 View Gestures: Swipe gesture can track vertical movement instead of h...
Tim Horton
Reported
2014-03-18 19:25:36 PDT
ViewGestureController::handleScrollWheelEvent properly bails in a wide variety of cases, but wheelEventWasNotHandledByWebCore does not, so we can pick up a wheel event that was rejected by the web process (and would have been rejected by the checks in handleScrollWheelEvent) and use it to start tracking a swipe. One of the cases we check in handleScrollWheelEvent is that the horizontal delta is bigger; since we don't check this in wheelEventWasNotHandledByWebCore, we can start tracking a swipe from an event with a predominantly vertical delta, which results in the swipe tracking vertical movement instead of horizontal movement. We should factor out all of the cases and check in both places. <
rdar://problem/16337279
>
Attachments
patch
(4.16 KB, patch)
2014-03-18 19:35 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
patch that builds
(4.08 KB, patch)
2014-03-18 20:46 PDT
,
Tim Horton
simon.fraser
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2014-03-18 19:35:37 PDT
Created
attachment 227147
[details]
patch
Tim Horton
Comment 2
2014-03-18 20:46:58 PDT
Created
attachment 227152
[details]
patch that builds
Simon Fraser (smfr)
Comment 3
2014-03-19 10:45:15 PDT
Comment on
attachment 227152
[details]
patch that builds View in context:
https://bugs.webkit.org/attachment.cgi?id=227152&action=review
> Source/WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:267 > if (!event.hasPreciseScrollingDeltas) > return false; > > if (![NSEvent isSwipeTrackingFromScrollEventsEnabled]) > return false;
Would be cheaper to do these early returns sooner.
> Source/WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:279 > + m_hasPendingSwipe = false;
Does this need to be cleared before the previous return?
Tim Horton
Comment 4
2014-03-19 10:57:45 PDT
http://trac.webkit.org/changeset/165903
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