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

Native touch scroll is blocked after touch/scroll on the react-smooth-dnd #75

Open
a-tonchev opened this issue Oct 20, 2020 · 1 comment

Comments

@a-tonchev
Copy link

Bug is reproduced in browser and also in mobile:

  1. Open demo page: https://kutlugsahin.github.io/smooth-dnd-demo/ with mobile chrome / or desktop chrome in Device-mode

  2. Scroll with finger and touch the react-smooth-dnd container

-> no more native scrolling possible. You can not scroll top or bottom of the page any more.

If you want guys, I can also upload a video?

Thanks and best regards

@a-tonchev
Copy link
Author

a-tonchev commented Oct 21, 2020

My workaround:

useEffect(() => {

const cleanClasses = () => {

  document.body.className = '';
};
document.addEventListener('touchend', cleanClasses, false);
return () => {
  document.removeEventListener('touchend', cleanClasses, false);
};

}, []);

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