Title: [185684] trunk/Source/WebKit2
- Revision
- 185684
- Author
- [email protected]
- Date
- 2015-06-17 18:05:13 -0700 (Wed, 17 Jun 2015)
Log Message
Also turn off long press on link preview.
https://bugs.webkit.org/show_bug.cgi?id=146084
Also turn off long presss gesture when previewing. Turn that back on when preview is completed.
Patch by Yongjun Zhang <[email protected]> on 2015-06-17
Reviewed by Tim Horton.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView willPresentPreviewViewController:forPosition:inSourceView:]):
(-[WKContentView didDismissPreviewViewController:committing:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (185683 => 185684)
--- trunk/Source/WebKit2/ChangeLog 2015-06-18 00:51:37 UTC (rev 185683)
+++ trunk/Source/WebKit2/ChangeLog 2015-06-18 01:05:13 UTC (rev 185684)
@@ -1,3 +1,16 @@
+2015-06-17 Yongjun Zhang <[email protected]>
+
+ Also turn off long press on link preview.
+ https://bugs.webkit.org/show_bug.cgi?id=146084
+
+ Also turn off long presss gesture when previewing. Turn that back on when preview is completed.
+
+ Reviewed by Tim Horton.
+
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView willPresentPreviewViewController:forPosition:inSourceView:]):
+ (-[WKContentView didDismissPreviewViewController:committing:]):
+
2015-06-17 Brent Fulgham <[email protected]>
Overflow regions with scroll snap points are not reliably rubber banding
Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (185683 => 185684)
--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm 2015-06-18 00:51:37 UTC (rev 185683)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm 2015-06-18 01:05:13 UTC (rev 185684)
@@ -3153,6 +3153,7 @@
- (void)willPresentPreviewViewController:(UIViewController *)viewController forPosition:(CGPoint)position inSourceView:(UIView *)sourceView
{
[self removeGestureRecognizer:_touchEventGestureRecognizer.get()];
+ [self removeGestureRecognizer:_longPressGestureRecognizer.get()];
[self _cancelInteraction];
[[viewController presentationController] setSourceRect:_positionInformation.bounds];
@@ -3161,6 +3162,7 @@
- (void)didDismissPreviewViewController:(UIViewController *)viewController committing:(BOOL)committing
{
[self addGestureRecognizer:_touchEventGestureRecognizer.get()];
+ [self addGestureRecognizer:_longPressGestureRecognizer.get()];
id<WKUIDelegatePrivate> uiDelegate = static_cast<id <WKUIDelegatePrivate>>([_webView UIDelegate]);
if ([uiDelegate respondsToSelector:@selector(_webView:didDismissPreviewViewController:)])
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes