Skip to content

Background Scrolling #19

Description

@heleon19

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); };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions