Only listen for mouse or touch events, not both.
Only listen for mouse or touch events, not both.

Devices that support touch (may) also emit mouse events for the same user
action. Mobile Safari does this, and moreover the mouse events are synthesized
to try to make mouse-only apps behave reasonably well, so the mouse events
don't even accurately reflect the touch behavior.

If a device comes along that supports both mouse and touch input, games which
wish to target it will have to use Mouse and Touch directly, rather than
Pointer. It is currently not possible to identify such devices, and attempting
to unify the two event streams in the way that we previously did results in
unusably bad default behavior on the most popular touch device in the known
universe.

ruslansennov/playn2,thecocce/playn-1,playn/playn,playn/playn,longtaoge/playn,tinkerstudent/playn,rachelharvey/playn,ruslansennov/playn2,rachelharvey/playn,longtaoge/playn,tinkerstudent/playn,playn/playn,thecocce/playn-1