Bug 173838

Summary: [iOS DnD] [WK2] Beginning a drag session should prevent clicking via long press
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebKit2Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, commit-queue, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=226188
Attachments:
Description Flags
Patch none

Description Wenson Hsieh 2017-06-26 09:55:56 PDT
After r218579, WebKit no longer attempts to replace out-of-the-box UIKit long-press/drag lift disambiguation by firing events immediately. However, this means that dragging will defer the highlight long press gesture recognizer until dragging ends rather than cancel it immediately, which causes WKContentView to dispatch a synthetic click immediately upon lift. To fix this, we should bail out of the highlight long press gesture when beginning a drag.
Comment 1 Wenson Hsieh 2017-06-26 10:02:22 PDT
Created attachment 313849 [details]
Patch
Comment 2 WebKit Commit Bot 2017-06-26 10:54:41 PDT
Comment on attachment 313849 [details]
Patch

Clearing flags on attachment: 313849

Committed r218812: <http://trac.webkit.org/changeset/218812>
Comment 3 WebKit Commit Bot 2017-06-26 10:54:43 PDT
All reviewed patches have been landed.  Closing bug.