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

fix: only call onDoubleClick for the dblclick event and not for the detected doubleTab in onTouchPanningStart #484

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

RobinSCU
Copy link
Contributor

@RobinSCU RobinSCU commented Jul 1, 2024

The Pull Requests addresses the issue: #453

The problem is that the onDoubleClick function is fired twice, once by the correct dblClick and the second time by the touchstart event.

onTouchPanningStart has its own implementation to detect if it was a double tap or not, and if it was, it fired the onDoubleClick function. I think the call to onDoubleClick is no longer needed and can be removed in favor of the dbClick event.

I tested the implementation on the following devices:

  • iOS 17.5 Safari
  • iOS 17.5 Chrome
  • Android 9 Chrome 126
  • MacBook Safari

@RobinSCU RobinSCU requested a review from prc5 as a code owner July 1, 2024 09:45
@prc5
Copy link
Collaborator

prc5 commented Jul 1, 2024

Thanks! 🚀

@prc5 prc5 merged commit 9525dbb into BetterTyped:master Jul 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

🎉 This PR is included in version 3.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@RobinSCU RobinSCU deleted the fix-mobile-double-tap-interaction branch July 1, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants