- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 478
 
Description
Hi everyone,
I followed the guide available here: https://hiukim.github.io/mind-ar-js-doc/examples/events-handling/, specifically the section about handling clicks to interact with the AR scene in a web app, such as clicking on a scene element (a-plane, a-image, etc.).
However, in all my tests, the click event is never detected, and I can't understand why. The only thing that works is capturing a generic click anywhere on the phone screen, but not on the actual AR scene elements.
In my setup, I added an a-camera and an a-plane inside the a-scene, just like shown in the guide:
// detect click event
const examplePlane = document.querySelector('#example-plane');
examplePlane.addEventListener("click", event => {
console.log("plane click");
});
But on mobile devices, clicking on the a-plane never triggers the event.
Does anyone know why this happens or how to make it work?
Thank you