Skip to content

Commit

Permalink
don't show transform controls when focusing an element in pointer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Aug 31, 2024
1 parent 93f7b20 commit 48f3f57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editor/lib/viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ export function Viewport(inspector) {
object.el.addEventListener('model-loaded', listener);
}

transformControls.attach(object);
if (inspector.cursor.isPlaying) {
// Only show transform controls when we are in pointer mode
transformControls.attach(object);
}
}
});

Expand Down

0 comments on commit 48f3f57

Please sign in to comment.