Skip to content

Commit 54ae26e

Browse files
committed
data in wrong place
1 parent 4a72ed1 commit 54ae26e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/cursor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ module.exports.Component = registerComponent('cursor', {
320320
* in case user mousedowned one entity, dragged to another, and mouseupped.
321321
*/
322322
onCursorUp: function (evt) {
323+
var data = this.data;
324+
323325
if (!this.isCursorDown) { return; }
324326

325327
// If there is no activeInput being pressed or it is not
@@ -330,9 +332,7 @@ module.exports.Component = registerComponent('cursor', {
330332
) { return; }
331333

332334
this.isCursorDown = false;
333-
334-
var data = this.data;
335-
this.twoWayEmit(EVENTS.MOUSEUP, evt);
335+
this.twoWayEmit(EVENTS.MOUSEUP);
336336

337337
if (this.reenableARHitTest === true) {
338338
this.el.sceneEl.setAttribute('ar-hit-test', 'enabled', true);

0 commit comments

Comments
 (0)