-
Notifications
You must be signed in to change notification settings - Fork 80
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
Alternative drag and drop behavior #109
Comments
Hey there. Nice. Thanks for telling me about this use case. I'm working on a new version that will let you have more control over these behaviors. |
Any updates on this, @sghall? Just checked the docs and don't see the option disable track click in favor drag, yet. |
Hi @Kadrian . I also want to build something like this. Do you have open source example for it to refer to? Thank you. |
@zibrahimov sorry, it wasn't open source in this case |
@Kadrian Oh okay. Thanks. Is there any tip that you can give me about how you did it? Currently it accepts only one range per slider. |
Hi. Most of all, I just wanted to leave a note that this is an absolutely amazing component and wanted to show you what I've built with it.
So thank you very much for building it and keep up the work!
Suggestion
Now if you look at my example above, I want to adjust the drag and drop behavior next.
The default behavior is that you click the track and the nearest handle jumps to your mouse position. The behavior I'm looking for in my example is that you click and drag the entire track, which moves both handles left and right.
I thought it might be interesting to think about adding this as an optional drag and drop alternative maybe using something like
defaultDrag = "jump-handles" | "move-track"
The text was updated successfully, but these errors were encountered: