Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mouse down and touch start at any position on the track #63

Merged
merged 4 commits into from
Jul 16, 2020

Conversation

arcatdmz
Copy link
Contributor

Currently, the end-user first needs to locate a thumb (hover a pointer on it or click somewhere on a track) and then start dragging and scrubbing.

https://gyazo.com/de834e1d5a6ed5d7274255dd66e3bfa5

This PR allows the end-user to start dragging at an arbitrary location within the slider, regardless of the thumb position.

https://gyazo.com/00c080f201988bbd58fab6c4f06306ca

As a side effect of this PR, the onClick prop, which was useful to detect a click on a track, becomes useless and thus is removed accordingly.

@wangzuo
Copy link
Collaborator

wangzuo commented Jul 15, 2020

Looks nice! I will try to release this asap

@wangzuo wangzuo merged commit b9dbc7b into swiftcarrot:master Jul 16, 2020
@arcatdmz
Copy link
Contributor Author

Thank you! Lots of love to your contributions to this project.

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