Skip to content
Snippets Groups Projects
Commit 484b05eb authored by Kevin Lee's avatar Kevin Lee
Browse files

fix issue where camera look would be enabled the second time you grab the pen

parent 6a4e0bd2
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,9 @@ export default class MouseEventsHandler { ...@@ -124,7 +124,9 @@ export default class MouseEventsHandler {
} }
onMouseMove(e) { onMouseMove(e) {
const shouldLook = this.isPointerLocked || (this.isLeftButtonDown && !this.isLeftButtonHandledByCursor); const shouldLook =
this.isPointerLocked ||
(!this.superHand.state.get("grab-start") && this.isLeftButtonDown && !this.isLeftButtonHandledByCursor);
if (shouldLook) { if (shouldLook) {
this.look(e); this.look(e);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment