Skip to content

Commit

Permalink
fix: do not handle move event after terminating (jquense#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait authored and jquense committed Nov 12, 2018
1 parent befac9f commit bcc4d93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ class Selection {
}

_handleMoveEvent(e) {
if (this._initialEventData === null) {
return;
}

let { x, y } = this._initialEventData
const { pageX, pageY } = getEventCoordinates(e)
let w = Math.abs(x - pageX)
Expand Down

0 comments on commit bcc4d93

Please sign in to comment.