From cf04481aa4f18ebcabf2665625c7425068746989 Mon Sep 17 00:00:00 2001 From: itsjohncs Date: Tue, 19 Oct 2021 16:18:16 -0700 Subject: [PATCH] Prevent ignored touches on Android Chrome. Android Crhome will not trigger a click event if a user drags an item, even if the item is dropped back into its original placement. This means that whenever the "ignore next click" handling is activated, the user's _next_ click (unrelated to dragging) will be ignored. This commit solves this by never activating the "ignore next click" handling on Android Chrome. --- src/Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sortable.js b/src/Sortable.js index 431679173..99bff13dd 100644 --- a/src/Sortable.js +++ b/src/Sortable.js @@ -298,7 +298,7 @@ let dragEl, // #1184 fix - Prevent click event on fallback if dragged but item not changed position -if (documentExists) { +if (documentExists && !ChromeForAndroid) { document.addEventListener('click', function(evt) { if (ignoreNextClick) { evt.preventDefault();