From 7c379b06b21595560b5910b50b18050c828df8b3 Mon Sep 17 00:00:00 2001 From: Qxyat <365562443@qq.com> Date: Thu, 24 Jan 2019 01:28:55 +0800 Subject: [PATCH] Don't accept gestures by ForwardingGestureRecognizer (flutter/engine#7558) ForwardingGestureRecognizer was previously accepting the gesture when the touch sequence ended, this was causing some other gesture recognizers to not accept the gestures (e.g tapping on the my location button in a Google Map didn't work). --- .../darwin/ios/framework/Source/FlutterPlatformViews.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index d5bd70e0b4..3452807bcd 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -416,7 +416,7 @@ void FlutterPlatformViewsController::EnsureGLOverlayInitialized( - (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event { [_flutterView touchesEnded:touches withEvent:event]; - self.state = UIGestureRecognizerStateEnded; + self.state = UIGestureRecognizerStateFailed; } - (void)touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event {