Skip to content

Commit

Permalink
Merge pull request #2095 from itsjohncs/prevent-next-click-failure-an…
Browse files Browse the repository at this point in the history
…droid

Prevent ignored touches on Android Chrome.
  • Loading branch information
owen-m1 authored Mar 19, 2022
2 parents 8e8a107 + cf04481 commit 63762d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 63762d4

Please sign in to comment.