Changeset 246342 in webkit
- Timestamp:
- Jun 11, 2019, 5:24:09 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r246341 r246342 1 2019-06-11 Megan Gardner <megan_gardner@apple.com> 2 3 Integrate scrollbar gestures for iOS 4 https://bugs.webkit.org/show_bug.cgi?id=198767 5 6 Reviewed by Tim Horton. 7 8 * UIProcess/ios/WKContentViewInteraction.mm: 9 (_WKGestureRecognizerIsBuiltInScrollViewGestureRecognizer): 10 (-[WKContentView gestureRecognizer:canPreventGestureRecognizer:]): 11 1 12 2019-06-11 Timothy Hatcher <timothy@apple.com> 2 13 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r246327 r246342 1764 1764 } 1765 1765 1766 #if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/WKContentViewInteractionWKInteraction.mm>) 1767 #include <WebKitAdditions/WKContentViewInteractionWKInteraction.mm> 1768 #else 1766 static BOOL isBuiltInScrollViewGestureRecognizer(UIGestureRecognizer *recognizer) 1767 { 1768 return ([recognizer isKindOfClass:NSClassFromString(@"UIScrollViewPanGestureRecognizer")] 1769 || [recognizer isKindOfClass:NSClassFromString(@"UIScrollViewPinchGestureRecognizer")] 1770 || [recognizer isKindOfClass:NSClassFromString(@"UIScrollViewKnobLongPressGestureRecognizer")] 1771 ); 1772 } 1769 1773 1770 1774 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)preventingGestureRecognizer canPreventGestureRecognizer:(UIGestureRecognizer *)preventedGestureRecognizer … … 1773 1777 // during a long-press gesture. 1774 1778 BOOL shouldNotPreventScrollViewGestures = preventingGestureRecognizer == _highlightLongPressGestureRecognizer || preventingGestureRecognizer == _longPressGestureRecognizer; 1775 return !(shouldNotPreventScrollViewGestures 1776 && ([preventedGestureRecognizer isKindOfClass:NSClassFromString(@"UIScrollViewPanGestureRecognizer")] || [preventedGestureRecognizer isKindOfClass:NSClassFromString(@"UIScrollViewPinchGestureRecognizer")])); 1777 } 1778 1779 #endif 1779 1780 return !(shouldNotPreventScrollViewGestures && isBuiltInScrollViewGestureRecognizer(preventedGestureRecognizer)); 1781 } 1780 1782 1781 1783 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)preventedGestureRecognizer canBePreventedByGestureRecognizer:(UIGestureRecognizer *)preventingGestureRecognizer {
Note:
See TracChangeset
for help on using the changeset viewer.