Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soyersoyer opened this issue Dec 13, 2019 · 0 comments

Comments

@soyersoyer
Copy link
Contributor

soyersoyer commented Dec 13, 2019

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);
@soyersoyer soyersoyer changed the title [ios][regression] After dragging I have to tap one (anywhere) to make the scroll working again [ios][regression] After dragging I have to tap (anywhere) to make the scroll working again Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant