-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
@tizzle - I've been using a touchscreen laptop recently and touch events on the screen need to be handled differently. I think the correct way is to set the CSS attribute touchAction=none on the Aframe canvas (so that the canvas el doesn't use the OS-defined touch gestures) then change the listeners from mousedown, mouseup to pointerdown, pointerup.
This can all be wrapped in if (window.PointerEvent)
for backwards compatibility, though basically all current browsers support pointer events.
I have this as a lower-priority item to do. Just wanted to flag it here.