Skip to content

Commit 2bc9fee

Browse files
martin-strobeljquense
authored andcommitted
fix: selecting events in mobile browsers (jquense#1233)
on longpress range and therefore start and end variables were empty.
1 parent 8fefeee commit 2bc9fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Selection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class Selection {
341341

342342
// Prevent emitting selectStart event until mouse is moved.
343343
// in Chrome on Windows, mouseMove event may be fired just after mouseDown event.
344-
if (!old && !(w || h)) {
344+
if (this.isClick(pageX, pageY) && !old && !(w || h)) {
345345
return
346346
}
347347

0 commit comments

Comments
 (0)