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

sameValue to min-max -- choosing handle based on drag direction #174

Open
saikatguha opened this issue Jul 28, 2020 · 0 comments
Open

sameValue to min-max -- choosing handle based on drag direction #174

saikatguha opened this issue Jul 28, 2020 · 0 comments

Comments

@saikatguha
Copy link

Current slider behavior is setting z-index on last moved slider to enable dragging the same slider. This is useful for overlap scenarios where min-max are close to each other (but not same value) such that the handle zone overlaps.

In the special case where min-max are the same value (with allowSameValues), it creates a problem where dragging the handle only works in one direction (the direction from which the last handle came). It requires some gymnastics if the user needs to move in the opposite direction. 1) First move the sameValue handle in the other direction to see both handles again, 2) Then move the real handle in the desired direction, and finally 3) move the other handle back to the same value location. Very counter intuitive.

A better approach would be to special case the sameValue situation where moving the sameValue handle to the left moves the min handle, and moving the sameValue handle to the right moves the max handle.

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

1 participant