Changeset 255625 in webkit
- Timestamp:
- Feb 3, 2020 5:51:21 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r255610 r255625 1 2020-02-03 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Add a WebKitAdditions hook to override the behavior of -[WKContentView gestureRecognizer:shouldReceiveTouch:] 4 https://bugs.webkit.org/show_bug.cgi?id=207162 5 <rdar://problem/59129739> 6 7 Reviewed by Tim Horton. 8 9 Allow an internal implementation of `-_allowGestureRecognizer:toReceiveTouch:` to prevent touches from being 10 routed to certain gesture recognizers, if necessary. 11 12 * UIProcess/ios/WKContentViewInteraction.mm: 13 (-[WKContentView gestureRecognizer:shouldReceiveTouch:]): 14 1 15 2020-02-03 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r255603 r255625 1522 1522 1523 1523 if (gestureRecognizer == _touchActionLeftSwipeGestureRecognizer || gestureRecognizer == _touchActionRightSwipeGestureRecognizer || gestureRecognizer == _touchActionUpSwipeGestureRecognizer || gestureRecognizer == _touchActionDownSwipeGestureRecognizer) { 1524 1525 1524 // We update the enabled state of the various swipe gesture recognizers such that if we have a unidirectional touch-action 1526 1525 // specified (only pan-x or only pan-y) we enable the two recognizers in the opposite axis to prevent scrolling from starting … … 1533 1532 } 1534 1533 1534 #if USE(APPLE_INTERNAL_SDK) 1535 return [self _allowGestureRecognizer:gestureRecognizer toReceiveTouch:touch]; 1536 #else 1535 1537 return YES; 1538 #endif 1536 1539 } 1537 1540
Note: See TracChangeset
for help on using the changeset viewer.