Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
WebXR overlay interferes with ThreeJS AR Controller

So for school I am making a webshop that allows users to view the product in AR. With WebXR I have added an overlay to the AR session that contains a button to reposition the model. I found out that when I press the button, the click event on the button is triggered but also the select event on the ARController is also triggered.

Is there a way to prevent the controller from triggering when I click the button?

Thanks :)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to use the beforexrselect event and call preventDefault() as explained here : https://www.w3.org/TR/webxr-dom-overlays-1/#onbeforexrselect

buttonOnOverlay.addEventListener('beforexrselect', e => {
  e.preventDefault();
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!