flyover / imgui-js

JavaScript bindings for Dear ImGui using Emscripten and TypeScript
https://flyover.github.io/imgui-js/example/
MIT License
962 stars 103 forks source link

Camera rotates when using three.js OrbitControl #24

Closed zaino closed 4 years ago

zaino commented 4 years ago

Hi there, I setup imgui with the three.js FBX loader example. Everything works fine, but when I drag a imgui window, the camera rotates as well. I spend some time trying to figure out a workaround, but I'm curious if I'm missing the obvious.

Thanks in advance!

zaino commented 4 years ago

Nevermind, as simple as checking if the window is in focus.