Skip to content

Commit

Permalink
data in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
AdaRoseCannon committed Jul 12, 2022
1 parent 1cb2d2a commit 5019728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ module.exports.Component = registerComponent('cursor', {
* in case user mousedowned one entity, dragged to another, and mouseupped.
*/
onCursorUp: function (evt) {
var data = this.data;

if (!this.isCursorDown) { return; }

// If there is no activeInput being pressed or it is not
Expand All @@ -330,8 +332,6 @@ module.exports.Component = registerComponent('cursor', {
) { return; }

this.isCursorDown = false;

var data = this.data;
this.twoWayEmit(EVENTS.MOUSEUP);

if (this.reenableARHitTest === true) {
Expand Down

0 comments on commit 5019728

Please sign in to comment.