Skip to content

Commit bcc4d93

Browse files
RobinMalfaitjquense
authored andcommitted
fix: do not handle move event after terminating (jquense#1104)
1 parent befac9f commit bcc4d93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Selection.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ class Selection {
317317
}
318318

319319
_handleMoveEvent(e) {
320+
if (this._initialEventData === null) {
321+
return;
322+
}
323+
320324
let { x, y } = this._initialEventData
321325
const { pageX, pageY } = getEventCoordinates(e)
322326
let w = Math.abs(x - pageX)

0 commit comments

Comments
 (0)