Skip to content
Snippets Groups Projects
Unverified Commit 0872d047 authored by juan-bobo's avatar juan-bobo Committed by GitHub
Browse files

Merge pull request #46 from mozilla/bug/hands-open-and-close

Remove animation mixer
parents 4867cf81 55a7fc3d
No related branches found
No related tags found
No related merge requests found
...@@ -16,16 +16,13 @@ function ShortPress(el, button, onActivate) { ...@@ -16,16 +16,13 @@ function ShortPress(el, button, onActivate) {
ShortPress.prototype = { ShortPress.prototype = {
onButtonDown(event) { onButtonDown(event) {
console.log("down");
var self = this; var self = this;
this.pressTimer = window.setTimeout(function() { this.pressTimer = window.setTimeout(function() {
console.log("activate");
self.onActivate(event); self.onActivate(event);
}, this.timeOut); }, this.timeOut);
}, },
onButtonUp(event) { onButtonUp(event) {
console.log("up");
clearTimeout(this.pressTimer); clearTimeout(this.pressTimer);
}, },
...@@ -35,5 +32,4 @@ ShortPress.prototype = { ...@@ -35,5 +32,4 @@ ShortPress.prototype = {
} }
}; };
console.log("foo");
AFRAME.registerInputActivator("shortpress", ShortPress); AFRAME.registerInputActivator("shortpress", ShortPress);
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
<a-entity <a-entity
class="hand" class="hand"
cached-gltf-model="#bot-left-hand-mesh" cached-gltf-model="#bot-left-hand-mesh"
animation-mixer
personal-space-invader personal-space-invader
rotation="-90 90 0" rotation="-90 90 0"
position="0 0 0.075" position="0 0 0.075"
......
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