jossmac / react-scrolllock

🔒 Prevent scroll on the <body />
https://jossmac.github.io/react-scrolllock
MIT License
450 stars 40 forks source link

TouchScrollable disabled onTouchMove events on inner content #40

Open Krasnopir opened 5 years ago

Krasnopir commented 5 years ago

when TouchScrollable element has scroll, onTouchStart and onTouchEnd events work, but onTouchMove don't work

https://codesandbox.io/s/mj0kx3zm8x

renet commented 4 years ago

https://github.com/jossmac/react-scrolllock/blob/90cbf33d27b9fd0b9911cdf371c4466874ee9a10/src/utils.js#L22

I'm having the same issue. This line of code, which seems to be required for enabling touch-scrolling, prevents components like the Material UI Slider from being used on touch devices inside of <TouchScrollable />.

Can you please help me fix this?