Closed charlesfleche closed 7 years ago
Thanks!
This module just tracks ThreeJS's orbit controls directly. You should submit a new PR to ThreeJS, and after it gets merged we can fix up this module to keep it consistent with the upstream code. 😊
Ah sorry, my bad. I didn't get that... Apologies...
A new PR has been created upstream : https://github.com/mrdoob/three.js/pull/10302
OrbitControls
globally listens tomousemove
,mouseup
andkeydown
events. That means that even if an<input>
element exists outside of the OrbitControls, moving the text cursor with the key arrows within this<input>
will pan the OrbitControls.This PR ensures that only scope key / mouse events are processed by the
OrbitControls
.