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

Feature request: allow for connectSlider handles swap (drag handles across each-other and connect between or outside) #1262

Closed
demonoff opened this issue Dec 18, 2023 · 4 comments

Comments

@demonoff
Copy link

demonoff commented Dec 18, 2023

Hi there, thank you for a very nice device. Is there an option for the first handle to go beyond the second handle?

I am doing a small student research project in which I ask participants when they go to bed and when they wake up. For that a slider with 24 hours is perfect. Although, some people go to bed at 01:00 at night and wake up at 09:00 in the morning (this situation is well handled in current settings and the sleep time can be connected). However, for people who go to bed at 22:00 in the evening and wake up at 06:00 in the morning the connection should be inverted (and people should be able to drag one handle across the other handle to be able to select this option). Is that possible?

So in brief, if on the 24 h scale:

  • people go to bed before waking up, the connection will be between the bed_time_handle and wake_up_handle
  • people go to bed after waking up, the connection will be between 00:00 and wake_up_handle and between bed_time_handle and 24:00
@leongersen
Copy link
Owner

It sounds like you are looking for "unconstrained" behaviour.

@demonoff
Copy link
Author

demonoff commented Dec 18, 2023

Wow! Thanks for a swift response. The "unconstrained" behaviour looks a lot like it! But is there an option to switch the connection:

  • from h1↔h2 to 0↔h2 and h1↔24 when h2 < h1?

@leongersen
Copy link
Owner

This feature was contributed by @5andr0 and is in noUiSlider 15.8.0. Thanks!

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants