-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Slider] Allow disabling the left and right thumbs swap #24831
Comments
I hope that the left and right bars cannot overlap and the direction cannot be interchanged, but there is no api can do this, please help to add an api to control this, hope to get your reply as soon as possible, thanks~ |
@SunShinewyf Could you provide more details on your use case? Why do you need this behavior? |
This comment has been minimized.
This comment has been minimized.
@remyoudemans Do you have a visual example? It would help |
Reading this again, I think @SunShinewyf's issue is totally unrelated to mine. Sorry for the confusion! |
Alright, I'm closing for now as thumbs passing each other, is in theory fine. |
I'm sorry to see your reply so late, my use case just like a slider in a video clip, when the left bar and the right bar are in the same position, they can't drag, I don't want that thumbs can pass each other, so I hope that there is an API to control this |
Would like to ask whether the current version can meet such requirement? our projects are a little urgent |
@SunShinewyf I have no idea. Did you look into how the Slider's source can be updated to support it? Maybe we could have a prop for it if the implementation is simple enough? |
@oliviertassinari Not yet, let me look into it |
+1 for this, my use case is also based on a time range. I also need a minimum value between the two. |
I have tried to implement quickly the UX in https://codesandbox.io/s/rangeslider-material-demo-forked-63xq9?file=/demo.tsx by controlling the slider. I have found two blockers:
So overall, it looks quite a simple problem to solve. |
how can i disable one of the thumb totally |
Summary 馃挕
the bar on the left cannot exceed the bar on the right, hope that there is an api to control it
Examples 馃寛
Motivation 馃敠
The text was updated successfully, but these errors were encountered: