-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
Comments
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. |
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 🙂 |
Steps to reproduce
draggableRange
set to trueDemo: 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.
The text was updated successfully, but these errors were encountered: