-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
WebView within TabbedPage on Android has weird scrolling interactions #6487
Comments
Also, probably a bigger problem is that this also affects more common vertical-scrolling web content when inside a TabbedPage on Android. If you do a big swipe to try to scroll a long vertical distance, unless you manage to do a very exact vertical line with your finger, you'll accidentally trigger the horizontal scrolling behavior of the enclosing TabbedPage which is quite frustrating. |
@PureWeen is there an API already to disable the swipe tab change on android? perhaps that would help? |
I’m not a regular Android user so I might be missing the conventions, but I would have thought the tab scroll behaviour should be suppressed only when the individual touch interaction starts within a webview. A tab might contain many things, only one of which might be a small webview. However if that’s technically impractical then I recognise that the heuristic proposed above is better than the existing behaviour. |
Agreed. We'll also want to make sure whatever we do here doesn't interfere with accessibility expectations. |
still repros with vs main build, here is an example: |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@PureWeen: any updates on this issue. I've resumed porting my app to Maui with the current .NET 8.0 preview and ... this is still an issue. Thanks. |
@SteveSandersonMS @PureWeen A workaround for this is to disable
|
Description
If you put a WebView (for example BlazorWebView, but it doesn't have to be Blazor) inside a TabbedPage, and the content within the webview has horizontal scrolling, then trying to scroll the web content horizontally will cause the enclosing TabbedPage to scroll and switch to the previous/next tab.
This basically means you can't have this combination of controls as the UX is broken. On other platforms this problem doesn't occur because other platforms don't use swipe left/right to switch tabs.
Expected behavior: If the touch interaction starts within the webview, it should not scroll the enclosing TabbedPage.
Steps to Reproduce
Create MAUI app. Add TabbedPage with multiple tabs. Add WebView inside one of the tabs. Get the webview to show some web content like:
... then run the app on Android and try to scroll that content.
Version with bug
Release Candidate 1 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
All
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: