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
Regression: gesture priority between PageView and WebView #36304
Comments
It may or may not be related to #35394. |
And this is what happens when you do manage to keep your gesture almost entirely vertical (seems to be easier on an emulator with a mouse), while the drag gesture is in process:
Even a slight vertical move will make the |
There is now a workaround available here: https://stackoverflow.com/a/57150906/262618 The workaround involves creating a custom version of |
This bug seems to be still present with the latest version. Not sure if they’ll ever fix this. |
@QingyangLiu This ticket has a "December 2019" milestone, so I guess that the current plan is to deal with this by then. |
|
I'm closing the issue because I'm now convinced that it's a duplicate of #35394. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I have a vertically scrolling
WebView
inside a horizontally scrollingPageView
. Something like this:With the previous stable version of Flutter (1.5.4), this worked as expected - scrolling vertically would move the content inside the WebView and scrolling horizontally would move the PageView.
This broke after upgrading to Flutter
v1.7.8+hotfix.3
. Now horizontal scrolling seems always to win, even if the gesture is very clearly almost entirely vertical. If the page gets scrolled vertically at all, it is only after the gesture stops (i.e., when I stop touching the screen after a gesture) - there is no vertical scrolling while the gesture is happening.Adding and removing
VerticalDragGestureRecognizer
fromgestureRecognizers
have no effect now - either way the program works as if the recognizer was not on the list (although it's not thatgestureRecognizers
are completely ignored because addingEagerGestureRecognizer
DOES have an effect).Steps to Reproduce
Logs
Here is the debug output of the gesture arena (keep in mind that I was trying to keep my gesture as vertical as possible, but even a slight finger movement to the sides was enough for the
HorizontalDragGestureRecognizer
to win, even though I also was moving vertically the entire time):flutter analyze
output:flutter doctor -v
output:The text was updated successfully, but these errors were encountered: