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

156
Views
Three.js orbitController left click not working

I want to ask about three.js. so I created a periodic table and made it auto rotate. but I have a problem when I want to give a click function to the element. I use three.js with orbitControls, this is example code

if I add

controls.autoRotate  = true;

I can click the element and I can make a function to elements. But I can't drag to rotate element.

But if I change that code like this

controls.autoRotate  = false;

I can drag to rotate elements, but click function not working

How to solve this problem bro? I put an example link on jsfiddle. please help me, this problem is consuming a lot of my time

Can click but cannot drag rotate : link

Cannot click but can drag rotate : Link

about 4 years ago · Juan Pablo Isaza
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!