React components touch and click events
yassermuayed opened this issue · 1 comments
yassermuayed commented
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 commented
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.