We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a72ed1 commit 54ae26eCopy full SHA for 54ae26e
src/components/cursor.js
@@ -320,6 +320,8 @@ module.exports.Component = registerComponent('cursor', {
320
* in case user mousedowned one entity, dragged to another, and mouseupped.
321
*/
322
onCursorUp: function (evt) {
323
+ var data = this.data;
324
+
325
if (!this.isCursorDown) { return; }
326
327
// If there is no activeInput being pressed or it is not
@@ -330,9 +332,7 @@ module.exports.Component = registerComponent('cursor', {
330
332
) { return; }
331
333
334
this.isCursorDown = false;
-
- var data = this.data;
335
- this.twoWayEmit(EVENTS.MOUSEUP, evt);
+ this.twoWayEmit(EVENTS.MOUSEUP);
336
337
if (this.reenableARHitTest === true) {
338
this.el.sceneEl.setAttribute('ar-hit-test', 'enabled', true);
0 commit comments