restore removed strokeend event
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user