From 450c3e4d43cb8c53013716ed25a84a65474e5218 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 (#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/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index d5bd70e0b..3452807bc 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/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 { -- GitLab