diff --git a/src/components/saber-controls.js b/src/components/saber-controls.js index 852e2b9..efb6519 100644 --- a/src/components/saber-controls.js +++ b/src/components/saber-controls.js @@ -127,6 +127,7 @@ AFRAME.registerComponent('saber-controls', { endStroke: function () { if (!this.swinging || this.strokeDuration < this.data.strokeMinDuration) { return; } + this.el.emit('strokeend'); this.swinging = false; // Stroke finishes. Reset swinging state. this.accumulatedDistance = 0;