Skip to content

Commit

Permalink
Keyboard events for moving correctly listened on window.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Mihailik authored and Oleg Mihailik committed Sep 15, 2023
1 parent 20c6562 commit 1c47a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ function atlas(invokeType) {
controls.enableDamping = true;
controls.autoRotate = true;
controls.autoRotateSpeed = 0.2;
controls.listenToKeyEvents(renderer.domElement);
controls.listenToKeyEvents(window);

return controls;
}
Expand Down

0 comments on commit 1c47a17

Please sign in to comment.