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

Move click/tap events to onClick handler to fix bug with double tapping on mobile Chrome #7310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

broox
Copy link
Contributor

@broox broox commented Feb 10, 2024

There was an issue in which double tap events were not being emitted on mobile Chrome.

On mobile Chrome, the second touch event was not being emitted appropriately, which resulted in touch times being much longer than 300ms.

The click event is being emitted on all browsers, as expected. This change moves tap/click events to the onClick handler, which I think makes more sense. This change fixes the bug for me.

Closes: #7309

@broox broox force-pushed the mobile-chrome-doubletap-fix branch 3 times, most recently from cc00ce5 to d6af877 Compare February 11, 2024 22:39
@broox broox force-pushed the mobile-chrome-doubletap-fix branch from d6af877 to c0adeb0 Compare February 11, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double tap to zoom does not reliably work on mobile
1 participant