Skip to content

Added event listeners for touch#148

Open
PeterCharalambous wants to merge 2 commits intowhoisandy:masterfrom
PeterCharalambous:master
Open

Added event listeners for touch#148
PeterCharalambous wants to merge 2 commits intowhoisandy:masterfrom
PeterCharalambous:master

Conversation

@PeterCharalambous
Copy link
Copy Markdown

Resolves an issue with touch screens not being able to drag the sliders

Resolves an issue with touch screens not being able to drag the sliders
const { onChangeStart } = this.props;
document.addEventListener('mousemove', this.handleDrag);
document.addEventListener('mouseup', this.handleEnd);
document.addEventListener('touchmove', _this.handleDrag);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you meant this and not _this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tis done

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

Successfully merging this pull request may close these issues.

2 participants