Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UIButton selector doesn't work in iOS platformview #7558

Merged
merged 1 commit into from
Jan 23, 2019
Merged

Fix UIButton selector doesn't work in iOS platformview #7558

merged 1 commit into from
Jan 23, 2019

Conversation

Qxyat
Copy link
Contributor

@Qxyat Qxyat commented Jan 23, 2019

1.Problem
When displaying a platform view in iOS without any 'GestureDetector' in flutter, the UIButton on that platform view doesn't get response.But the method 'releaseGesture' in 'FlutterTouchInterceptingView' has been executed.
2.Solution
I think the reason is that the 'ForwardingGestureRecognizer' recognize the UITouch.
In 'DelayingGestureRecognizer', it just set 'delaysTouchesBegan = YES',so the UIButton's '- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event' and the following method will not be executed.
@amirh Hi,I wish you can take some time for this.

@amirh
Copy link
Contributor

amirh commented Jan 23, 2019

Thanks! this is very helpful! I've been stumbled by this issue for some time, thank you for finding the root cause!

@amirh amirh merged commit 450c3e4 into flutter:master Jan 23, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 23, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jan 23, 2019
…/engine#7558) (#26980)

flutter/engine@1c26bf8...450c3e4

git log 1c26bf8..450c3e4 --no-merges --oneline
450c3e4 Don&#39;t accept gestures by ForwardingGestureRecognizer (flutter/engine#7558)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop
the roller if necessary.
kangwang1988 pushed a commit to XianyuTech/flutter that referenced this pull request Feb 12, 2019
…/engine#7558) (flutter#26980)

flutter/engine@1c26bf8...450c3e4

git log 1c26bf8..450c3e4 --no-merges --oneline
450c3e4 Don&flutter#39;t accept gestures by ForwardingGestureRecognizer (flutter/engine#7558)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop
the roller if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants