Skip to content

Commit cf04481

Browse files
committed
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.
1 parent daaefed commit cf04481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ let dragEl,
298298

299299

300300
// #1184 fix - Prevent click event on fallback if dragged but item not changed position
301-
if (documentExists) {
301+
if (documentExists && !ChromeForAndroid) {
302302
document.addEventListener('click', function(evt) {
303303
if (ignoreNextClick) {
304304
evt.preventDefault();

0 commit comments

Comments
 (0)