Changeset 240316 in webkit
- Timestamp:
- Jan 22, 2019, 6:12:08 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r240311 r240316 1 2019-01-22 Megan Gardner <megan_gardner@apple.com> 2 3 Cancel Web Touches Properly so that long presses on YouTube links do not incorrectly trigger a load 4 https://bugs.webkit.org/show_bug.cgi?id=193687 5 <rdar://problem/47056717> 6 7 Reviewed by Tim Horton. 8 9 Cancel web gestures when a long press is recognized. 10 11 * Platform/spi/ios/UIKitSPI.h: 12 * UIProcess/ios/WKContentViewInteraction.mm: 13 (-[WKContentView _cancelWebGestureRecognizer]): 14 (-[WKContentView _longPressRecognized:]): 15 1 16 2019-01-22 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r240288 r240316 759 759 @interface UIWebTouchEventsGestureRecognizer () 760 760 - (id)initWithTarget:(id)target action:(SEL)action touchDelegate:(id <UIWebTouchEventsGestureRecognizerDelegate>)delegate; 761 - (void)cancel; 761 762 @property (nonatomic, getter=isDefaultPrevented) BOOL defaultPrevented; 762 763 @property (nonatomic, readonly) BOOL inJavaScriptGesture; -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r240288 r240316 1349 1349 } 1350 1350 1351 - (void)_cancelTouchEventGestureRecognizer 1352 { 1353 #if HAVE(CANCEL_WEB_TOUCH_EVENTS_GESTURE) 1354 [_touchEventGestureRecognizer cancel]; 1355 #endif 1356 } 1357 1351 1358 - (void)_didScroll 1352 1359 { … … 1980 1987 ASSERT(gestureRecognizer == _longPressGestureRecognizer); 1981 1988 [self _resetIsDoubleTapPending]; 1989 [self _cancelTouchEventGestureRecognizer]; 1982 1990 1983 1991 _lastInteractionLocation = gestureRecognizer.startPoint;
Note:
See TracChangeset
for help on using the changeset viewer.