Fix failing layout tests after trac.webkit.org/r250183
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Sep 2019 00:57:13 +0000 (00:57 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Sep 2019 00:57:13 +0000 (00:57 +0000)
commitf8a233829384503c0e192db4a79a77c83536fdcd
treedd676976fdb59c189d785ab59a062891630cda0b
parent233cdf4743c6cdde0dc1540f7f67f22f9d4268b0
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm