Skip to content

pointerevents for touch devices #21

@morandd

Description

@morandd

@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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions