Skip to content

Commit ed17fbb

Browse files
committed
fix issue with dragging on mobile
1 parent 908771c commit ed17fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/split.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ const Split = (idsOption, options = {}) => {
367367
// and prevents selection while dragging so avoid the selecting text.
368368
function startDragging (e) {
369369
// Right-clicking can't start dragging.
370-
if (e.button !== 0) {
370+
if ('button' in e && e.button !== 0) {
371371
return
372372
}
373373

0 commit comments

Comments
 (0)