Bug 150747 - [WebKit2] Gesture Recognition during text editing is often blocked by WKContentView gesture recognition
Summary: [WebKit2] Gesture Recognition during text editing is often blocked by WKConte...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Safari 9
Hardware: iPhone / iPad iOS 9.0
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2015-10-30 19:07 PDT by Eugene Dudnyk
Modified: 2015-11-01 01:53 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Dudnyk 2015-10-30 19:07:36 PDT
- During setup of text editing state the WKContentView's gesture recognizers are not properly configured with dependencies to gesture recognizers of UIWKTextInteractionAssistant.
- Area of recognition of WKContentView's gesture recognizers includes area of edited field as before editing.

This leads to next issues:

- When right after focusing text field perform a double-click on it's text, impossible to show loupe/menu on the cursor/move the cursor. To restore proper editing behavior, another text field should be focused.
- Races occur between WKContentView's long-press gesture recognizers and UIWKTextInteractionAssistant's loupe long press gesture recognizer. Often one of WKContentView's long-press recognizers catches touches prior to loupe recognizer.

Solution could be as follows:
WKContentView should reject for recognizers listed below touches which hit area of edited text field during it's editing, in (gestureRecognizer:shouldRecieveTouch:) delegate callback:
_highlightLongPressGestureRecognizer
_longPressGestureRecognizer
_doubleTapGestureRecognizer
_twoFingerDoubleTapGestureRecognizer
Comment 1 Radar WebKit Bug Importer 2015-10-30 19:07:59 PDT
<rdar://problem/23343178>