5

I was wondering if you could check if a dat.gui interface is being interacted with. I have a hold and drag behaviour in my code that let's me rotate the camera. But there is a situation where I try to change a value in my interface by holding and dragging a sidebar and the camera rotates too.

enter image description here

Is there any way to do a check on that so it doesn't rotate on that situation?

You can try the program here.

Edit: there's also a bunch of other weirdness when dragging and holding with a cursor over the interface, all of it could be gone if I could check if I was interacting with the interface.

Tom
  • 8,509
  • 7
  • 49
  • 78
Kob
  • 77
  • 6

0 Answers0