Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2452973003: [ios] Do not trigger context menu while scrolling. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 944494a6005ea7c1d5d1072e04c913dfc4307aaa..ea948b4e0558254c8afeea32d5365200f0312805 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -4594,6 +4594,8 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
_contextMenuRecognizer.reset([[UILongPressGestureRecognizer alloc]
initWithTarget:self
action:@selector(showContextMenu:)]);
+ [_contextMenuRecognizer
+ requireGestureRecognizerToFail:self.webScrollView.panGestureRecognizer];
[_contextMenuRecognizer setMinimumPressDuration:kLongPressDurationSeconds];
[_contextMenuRecognizer setAllowableMovement:kLongPressMoveDeltaPixels];
[_contextMenuRecognizer setDelegate:self];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698