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 1cb2d2a commit 5019728Copy full SHA for 5019728
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,8 +332,6 @@ module.exports.Component = registerComponent('cursor', {
330
332
) { return; }
331
333
334
this.isCursorDown = false;
-
- var data = this.data;
335
this.twoWayEmit(EVENTS.MOUSEUP);
336
337
if (this.reenableARHitTest === true) {
0 commit comments