kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
598 stars 146 forks source link

[ios][regression] After dragging I have to tap (anywhere) to make the scroll working again #69

Open soyersoyer opened 4 years ago

soyersoyer commented 4 years ago

It caused the #50. The #67 is fixing it. But the touch-action: none doesn't prevent the panning somewhy. Why don't we just prevent the touchmove instead of adding the smooth-dnd-disable-touch-action to the body?

function preventDefault(e: Event) {e.preventDefault();}
window.addEventListener('touchmove', preventDefault, { passive: false });

and after finish:

window.removeEventListener('touchmove', preventDefault);