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

bug: Stopping a scroll with tap triggers underlying click event #6826

Closed
aeharding opened this issue Aug 18, 2023 · 3 comments
Closed

bug: Stopping a scroll with tap triggers underlying click event #6826

aeharding opened this issue Aug 18, 2023 · 3 comments

Comments

@aeharding
Copy link

aeharding commented Aug 18, 2023

Bug Report

Capacitor Version

  • 5.2.3

Platform(s)

  • Android

Current Behavior

Inside an Android Capacitor app, tapping the screen to stop a scroll in progress triggers the underlying HTML click event.

This can be especially apparent to users in a feed-based app such as Voyager.

Expected Behavior

Stopping a scroll by tapping the screen should not trigger underlying HTML click event handler. This is the behavior everywhere else (iOS Capacitor, iOS Safari, and Android Chrome).

Code Reproduction

The simple Ionic List example from ionic start (expanding the list with additional items so the view is scrollable) is enough to replicate. See test:

https://github.com/aeharding/test-scroll

Video Reproduction

Demonstrating the problem running inside @capacitor/android web view

Notice how tapping the screen with a scroll in progress navigates to the email detail page.

IMG_3353.mp4

Demonstrating the problem does not exist running inside Chrome

Notice how tapping the screen stops the scroll and does not navigate to the email detail page.

IMG_3356.mp4

Maybe related?

@aeharding
Copy link
Author

Based on the related issues in react-native-webview, I suspect this is an Android Webview bug. I did not find an existing bug, so I have created a new Chromium bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=1474135

@jcesarmobile
Copy link
Member

I can reproduce on a regular WebView without Capacitor involved and it's also an issue in react native WebView, so it seems the WebView behavior.
I couldn't find any method to control this, so I'm going to close the issue.
Hopefully some Google engineer answers on your chromium bug and provides more information, I've starred it.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2023
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 27, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants