react-range-slider
react-range-slider copied to clipboard
Background Scrolling
Hello
Thanks for the great Slider!
I use the slider in a dialog, when I move the slider now the background scrolls along. This leads to the fact that the slider moves only a part of the covered distance. To avoid this I had to pack the slider into a separate component and intercept the scroll event.
componentDidMount() { this.scrollHandleElement = ReactDOM.findDOMNode(this); this.scrollLockEvent = (e) => e.preventDefault(); this.scrollHandleElement.addEventListener("touchmove", this.scrollLockEvent, false); };