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 issue #24048] Fixed a problem, the vertical drag was not recogni… #63179
[fix issue #24048] Fixed a problem, the vertical drag was not recogni… #63179
Conversation
…recognized when the child of GestureDetector is ScrollView
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
1 similar comment
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
This PR is causing many test failures and it is missing tests. |
…multi-gesture-recognition
…multi-gesture-recognition
@goderbauer |
/cc @dkwingsmt |
Thanks for the PR. Although I'm not a fan of this solution for the following reasons:
Correct me if I'm wrong, but I think the demand here is that the inner drag recognizer should "surrender" to the outer detector when but only when it has reached the end of the intended direction. For example, say there are 2 vertical dragging gestures, one nested in the other,
This mechanism has been implemented by We should probably either 1) try to build the demanded feature using @Piinks Are you familiar with |
Hey @dkwingsmt thanks for considering the Nested Scroll View. It appears in the issue that this can be accomplished using a NotificationListener: #24048 (comment) The issue was looking for a way to trigger a refresh after lifting their finger instead of dragging to a certain scroll offset. |
I am going to close this with some of the reasons given in #63179 (comment). |
…zed when the child of GestureDetector is ScrollView
Description
Due to the conflict between GestureDetector and ScrollView, some functions of GestureDetector were not called.
So I fixed it. :)
Before
After
Test code
Related Issues
Use GestureDetector and CustomScrollView together
Fixes #24048
Tests
Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.