Closed YoavHortman closed 5 years ago
Was able to solve this using the following work around:
<ReactSlider
onBeforeChange={this.disableScroll}
onAfterChange={this.enableScroll}
/>
disableScroll = () => {
document.ontouchmove = (e) => {
e.preventDefault();
}
}
enableScroll = () => {
document.ontouchmove = () => {
return true;
}
}
but still it seems like this should be default behavior
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When using the component in a scrollable component in an ios cordova app touching a slider will not prevent the default scroll behaviour and will start to glitch and display in a corrupted way.
Maybe prevent default on touch so that wouldn't happen?