From 4cf065e5b308a50d5477a96438a5d28d67c3ff7f Mon Sep 17 00:00:00 2001 From: Arthur Akhnoyan Date: Mon, 22 Jul 2024 17:24:12 +0400 Subject: [PATCH] Drag event type check fix --- src/Gesto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gesto.ts b/src/Gesto.ts index 4e4ce25..ab1fc71 100644 --- a/src/Gesto.ts +++ b/src/Gesto.ts @@ -271,7 +271,7 @@ class Gesto extends EventEmitter { if (!this.flag && e.cancelable === false) { return; } - const isDragAPI = e.type.indexOf("drag") >= -1; + const isDragAPI = e.type.indexOf("drag") > -1; if (this.flag && isDragAPI) { return;