Skip to content

Commit

Permalink
test: transform controls test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Aug 8, 2021
1 parent 55864c6 commit 8c7ed2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/three/test/controls/controls-transformcontrols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function init() {
control = new TransformControls(currentCamera, renderer.domElement);
control.addEventListener('change', render);

control.addEventListener('dragging-changed', function (event) {
control.addEventListener('dragging-changed', event => {
orbit.enabled = !event.value;
});

Expand All @@ -62,7 +62,7 @@ function init() {

window.addEventListener('resize', onWindowResize);

window.addEventListener('keydown', function (event) {
window.addEventListener('keydown', event => {
switch (event.keyCode) {
case 81: // Q
control.setSpace(control.space === 'local' ? 'world' : 'local');
Expand Down Expand Up @@ -142,7 +142,7 @@ function init() {
}
});

window.addEventListener('keyup', function (event) {
window.addEventListener('keyup', event => {
switch (event.keyCode) {
case 16: // Shift
control.setTranslationSnap(null);
Expand Down

0 comments on commit 8c7ed2a

Please sign in to comment.