Title: [250373] trunk/Source/WebKit
Revision
250373
Author
[email protected]
Date
2019-09-25 17:57:13 -0700 (Wed, 25 Sep 2019)

Log Message

Fix failing layout tests after trac.webkit.org/r250183
https://bugs.webkit.org/show_bug.cgi?id=202053
<rdar://problem/54542190>

Reviewed by Tim Horton.

Followup to r250183: move the implementation of -gestureRecognizer:shouldReceiveTouch: out of
ENABLE(TOUCH_EVENTS) and into ENABLE(POINTER_EVENTS) instead. This logic is necessary in order for scrolling
via pan gestures to work on iOS, in the case where ENABLE(POINTER_EVENTS) is on but ENABLE(TOUCH_EVENTS) is off.
This is because the new swipe gesture recognizers added in r250183 will otherwise always take priority over the
scroll view's pan gestures.

Fixes the following layout tests:
- fast/scrolling/ios/reconcile-layer-position-recursive.html
- fast/scrolling/ios/click-events-during-momentum-scroll-in-main-frame.html
- fast/scrolling/ios/click-events-after-long-press-during-momentum-scroll-in-main-frame.html

* UIProcess/ios/WKContentViewInteraction.mm:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (250372 => 250373)


--- trunk/Source/WebKit/ChangeLog	2019-09-26 00:44:32 UTC (rev 250372)
+++ trunk/Source/WebKit/ChangeLog	2019-09-26 00:57:13 UTC (rev 250373)
@@ -1,3 +1,24 @@
+2019-09-25  Wenson Hsieh  <[email protected]>
+
+        Fix failing layout tests after trac.webkit.org/r250183
+        https://bugs.webkit.org/show_bug.cgi?id=202053
+        <rdar://problem/54542190>
+
+        Reviewed by Tim Horton.
+
+        Followup to r250183: move the implementation of -gestureRecognizer:shouldReceiveTouch: out of
+        ENABLE(TOUCH_EVENTS) and into ENABLE(POINTER_EVENTS) instead. This logic is necessary in order for scrolling
+        via pan gestures to work on iOS, in the case where ENABLE(POINTER_EVENTS) is on but ENABLE(TOUCH_EVENTS) is off.
+        This is because the new swipe gesture recognizers added in r250183 will otherwise always take priority over the
+        scroll view's pan gestures.
+
+        Fixes the following layout tests:
+        - fast/scrolling/ios/reconcile-layer-position-recursive.html
+        - fast/scrolling/ios/click-events-during-momentum-scroll-in-main-frame.html
+        - fast/scrolling/ios/click-events-after-long-press-during-momentum-scroll-in-main-frame.html
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+
 2019-09-25  Megan Gardner  <[email protected]>
 
         Update selections after scrolling for iframes and hide selections while iframes and overflow scrolls are scrolling.

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (250372 => 250373)


--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2019-09-26 00:44:32 UTC (rev 250372)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2019-09-26 00:57:13 UTC (rev 250373)
@@ -1445,6 +1445,7 @@
         }
     }
 }
+#endif // ENABLE(TOUCH_EVENTS)
 
 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
 {
@@ -1461,8 +1462,6 @@
     return touchActions == WebCore::TouchAction::PanX;
 }
 
-#endif
-
 #pragma mark - WKTouchActionGestureRecognizerDelegate implementation
 
 - (BOOL)gestureRecognizerMayPanWebView:(UIGestureRecognizer *)gestureRecognizer
@@ -1509,7 +1508,7 @@
     _preventsPanningInXAxis = NO;
     _preventsPanningInYAxis = NO;
 }
-#endif
+#endif // ENABLE(POINTER_EVENTS)
 
 - (void)_inspectorNodeSearchRecognized:(UIGestureRecognizer *)gestureRecognizer
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to