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

React components touch and click events #1

Closed
yassermuayed opened this issue Feb 27, 2024 · 1 comment
Closed

React components touch and click events #1

yassermuayed opened this issue Feb 27, 2024 · 1 comment

Comments

@yassermuayed
Copy link

Hi there,

I'm encountering an issue with touch events on React components. When I use the onClick event handler, touch events don't seem to work. If I change it to onTouchStart, touch events work as expected, but mouse clicks no longer work.

Is this expected behavior? Should I add both onClick and onTouchStart to each button? Or is there something else I'm missing?

Thanks,

@photonstorm
Copy link
Contributor

Hi - this was an issue introduced in Phaser v3.80.0, which we have just fixed in the v3.80.1 release. This template has been updated accordingly. Please pull down the new version of this template to resolve the issue.

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

No branches or pull requests

2 participants