I created a React game and it works great, but I found a lot of problems on Samsung tablet with Samsung web browser and keyboard attached. My game is designed to work on both touch screens and with mouse.
When I'm using this Samsung setup and I point an element with touchpad, the onPointerEnter
event runs first as touch
and then as mouse
too, which makes it super unstable. Other pointer events are messed up too. On iPads with keyboard on the other hand, only mouse
pointer event is being fired when using touchpad, which is understandable behavior.
Simple test:
<button onPointerEnter={console.log}>
I'm a button
</button>
Is this a known problem and if so, what are the recommended steps to make it work correctly? I can't just block mouse events, because my game uses mouse too.