Skip to main content
added 1 character in body
Source Link
Erik Minarini
  • 4.8k
  • 17
  • 19

Aframe elements won't simply react to touch / mouse events. You need a ray based cursor.

A good way to simulate the mouse is with the cursors attribute:

<a-scene cursor="rayOrigin: mouse>mouse">

It should also work with touch events on mobile devices.

Check it out here.


Otherwise use the a-frame cursor.

<a-cursor></a-cursor>

Aframe elements won't simply react to touch / mouse events. You need a ray based cursor.

A good way to simulate the mouse is with the cursors attribute:

<a-scene cursor="rayOrigin: mouse>

It should also work with touch events on mobile devices.

Check it out here.


Otherwise use the a-frame cursor.

<a-cursor></a-cursor>

Aframe elements won't simply react to touch / mouse events. You need a ray based cursor.

A good way to simulate the mouse is with the cursors attribute:

<a-scene cursor="rayOrigin: mouse">

It should also work with touch events on mobile devices.

Check it out here.


Otherwise use the a-frame cursor.

<a-cursor></a-cursor>
Source Link
Piotr Adam Milewski
  • 14.7k
  • 3
  • 23
  • 44

Aframe elements won't simply react to touch / mouse events. You need a ray based cursor.

A good way to simulate the mouse is with the cursors attribute:

<a-scene cursor="rayOrigin: mouse>

It should also work with touch events on mobile devices.

Check it out here.


Otherwise use the a-frame cursor.

<a-cursor></a-cursor>