From 2bc9fee6b413e061333aa6c352bf9e8e7e12b71e Mon Sep 17 00:00:00 2001 From: martin-strobel <46812665+martin-strobel@users.noreply.github.com> Date: Fri, 22 Feb 2019 14:10:00 +0100 Subject: [PATCH] fix: selecting events in mobile browsers (#1233) on longpress range and therefore start and end variables were empty. --- src/Selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Selection.js b/src/Selection.js index 29b7b3e6e..4f7569938 100644 --- a/src/Selection.js +++ b/src/Selection.js @@ -341,7 +341,7 @@ class Selection { // Prevent emitting selectStart event until mouse is moved. // in Chrome on Windows, mouseMove event may be fired just after mouseDown event. - if (!old && !(w || h)) { + if (this.isClick(pageX, pageY) && !old && !(w || h)) { return }