-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrbitControls: Introduce listenToKeyEvents(). #21054
Conversation
Thanks! |
Hello,
It cannot work when I use arrow keys. |
@GabbyLin Please use https://discourse.threejs.org for help questions. |
version r132. |
The official example uses the above pattern to create the controls. Do you mind demonstrating the error with a live example based on the demo's code? |
my bad. I missed a sentence |
Related issue: Fixed #20805.
Description
See #20805 (comment).
The internal event listener for
keydown
is now not set automatically anymore. Instead,listenKeyEvents()
has to be called with a proper target for key events (e.g.window
).