Skip to content

Commit 5019728

Browse files
committed
data in wrong place
1 parent 1cb2d2a commit 5019728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/cursor.js

Lines changed: 2 additions & 2 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,8 +332,6 @@ module.exports.Component = registerComponent('cursor', {
330332
) { return; }
331333

332334
this.isCursorDown = false;
333-
334-
var data = this.data;
335335
this.twoWayEmit(EVENTS.MOUSEUP);
336336

337337
if (this.reenableARHitTest === true) {

0 commit comments

Comments
 (0)