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).
This commit is contained in:
Qxyat
2019-01-24 01:28:55 +08:00
committed by Amir Hardon
parent eee8655634
commit 7c379b06b2

View File

@@ -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 {