-
Notifications
You must be signed in to change notification settings - Fork 3
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
on overlapping handles, move the correct one based on whether dragged towards left or right #7
Comments
No, unfortunately. One of the restrictions of the slider is that handles must remain in a fixed linear order. The leftmost handle, for example, can never be moved to a position to the right of any other handle. Handle selection occurs when the click begins ( This means that you can only select and move the left handle (or if you're at the left edge, the right handle) when they're stacked, and since you can't move it past the right handle, you can only move it left. The slider does not have support for waiting until the user starts dragging to try to guess what handle they were trying to move, so unfortunately, no, there is no way to do what you're trying to do. Not without rewriting the handle selection code and the mouse events code, anyway. |
My requirement was for a 2 handle horizontal slider, this is what i ended up doing, it is not perfect but works for my requirement :
I could not directly do it with code outside the library though. |
I have a slider with 2 handles . When these handles overlap, the last one moved is the selected handle, for example if the last touched was handle2 and i try to move left from the overlapped position, it won't move, and if last touched was handle1 and i try to move right from the overlapped position, it wouldn't move.
As a user, i can't distinguish between the 2 handles when overlapped, my expectation is that when i try to move left, the correct handle is selected and moved left, and same for right... is there a way to do this ?
The text was updated successfully, but these errors were encountered: