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

Alternative drag and drop behavior #109

Open
Kadrian opened this issue Jan 27, 2020 · 5 comments
Open

Alternative drag and drop behavior #109

Kadrian opened this issue Jan 27, 2020 · 5 comments

Comments

@Kadrian
Copy link

Kadrian commented Jan 27, 2020

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.

Bildschirmfoto 2020-01-27 um 15 12 24

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"

@sghall
Copy link
Owner

sghall commented Jan 29, 2020

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.

@rflprr
Copy link

rflprr commented Jun 23, 2020

Any updates on this, @sghall? Just checked the docs and don't see the option disable track click in favor drag, yet.
Also, thanks for the awesome component.

@zibrahimov
Copy link

Hi @Kadrian . I also want to build something like this. Do you have open source example for it to refer to? Thank you.

@Kadrian
Copy link
Author

Kadrian commented Apr 20, 2021

@zibrahimov sorry, it wasn't open source in this case

@zibrahimov
Copy link

zibrahimov commented Apr 20, 2021

@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.
Screen Shot 2021-04-20 at 19 39 58

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

No branches or pull requests

4 participants