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

draggableRange allows to drag into restricted regions #653

Open
sebakerckhof opened this issue Sep 26, 2018 · 2 comments
Open

draggableRange allows to drag into restricted regions #653

sebakerckhof opened this issue Sep 26, 2018 · 2 comments

Comments

@sebakerckhof
Copy link

Steps to reproduce

  1. Have a slider with a restricted region and draggableRange set to true
  2. Drag the slider bar

Demo: http://jsfiddle.net/xk5tmq64/

Expected behaviour

You can't drag in the restricted region

Actual behaviour

You can drag into the restricted region, ending up with invalid values.

@carlosen14
Copy link

you could detect when user stopped using the UI event, then evaluate if any of the two values is inside the forbidden area, and whether the first can be at the lowest in range, else move it to the highest and do the same with the second value.

it must be solved from the library, but this way you can work while it gets solved.

@ValentinH
Copy link
Member

I've missed this issue 3 months ago. Indeed this should be pretty simple to handle this as part of the library. This behavior is actually a bug.

However, I'll probably won't have the time to implement a fix. I could provide some guidance if someone wants to submit a PR though 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants