Skip to content
Snippets Groups Projects
Commit 52936f58 authored by Greg Fodor's avatar Greg Fodor
Browse files

Untrack when choosing focus on a new object

parent e50ec985
No related branches found
No related tags found
No related merge requests found
......@@ -115,11 +115,13 @@ AFRAME.registerComponent("camera-tool", {
},
focus(el, track) {
this.lookAt(el);
if (track) {
this.trackTarget = el;
} else {
this.trackTarget = null;
}
this.lookAt(el);
},
lookAt: (function() {
......
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