Skip to content

Commit

Permalink
Merge pull request #62 from Bitspark/firefox-compatibility
Browse files Browse the repository at this point in the history
Prevent Firefox dragging disturbing operator moving
  • Loading branch information
td5r committed Aug 26, 2018
2 parents 37bd1da + d694fe6 commit 41be28d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/operator.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ class MouseMoveTracker {
this.mouseAction(this, event, 'start');
MouseMoveTracker.lastX = event.screenX;
MouseMoveTracker.lastY = event.screenY;
return false;
}

public stop(event: any) {
Expand All @@ -855,6 +856,7 @@ class MouseMoveTracker {
MouseMoveTracker.lastX = event.screenX;
MouseMoveTracker.lastY = event.screenY;
this.actionType = '';
return false;
}

public track(event: any) {
Expand All @@ -866,5 +868,6 @@ class MouseMoveTracker {
MouseMoveTracker.lastX = event.screenX;
MouseMoveTracker.lastY = event.screenY;
}
return false;
}
}

0 comments on commit 41be28d

Please sign in to comment.