From df8bc47a1250500be57b569aa2f3e2f9a9247c5d Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 12 Nov 2018 15:10:35 +0100 Subject: [PATCH] do not handle move event after terminating --- src/Selection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Selection.js b/src/Selection.js index d5c9e7c69..36acbff60 100644 --- a/src/Selection.js +++ b/src/Selection.js @@ -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)