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

Markers don't move in one direction when overlapping #280

Open
2 tasks done
nicholasc120 opened this issue May 13, 2023 · 2 comments
Open
2 tasks done

Markers don't move in one direction when overlapping #280

nicholasc120 opened this issue May 13, 2023 · 2 comments

Comments

@nicholasc120
Copy link

nicholasc120 commented May 13, 2023

I'm using the MultiSlider with two markers. when they overlap each other on the left side, I'm unable to move the marker down until i move the other marker back up. Likewise, when both markers overlap on the right side, I cannot move one marker up until i move the other marker down.

For example, I'm using a slider with min and max values of 1 and 4. If I move both markers to 2, I can't move the lower marker to 1 until I move the upper marker to 3. Likewise, if I move both markers to 3, I can't move the upper marker to 4 until I move the lower marker to 2.

Steps to Reproduce

<MultiSlider
            values={[multiSliderValue[0], multiSliderValue[1]]}
            sliderLength={280}
            onValuesChange={
                (newValues) => {
                    setMultiSliderValue(newValues)
                 }
            }
            min={1}
            max={4}
            allowOverlap={true}
            smoothSnapped
/>

Move both markers to 2 and then try and move one of them to 1, or move both markers to 3 and then try to move one of them to 4

Expected Behavior

I thought if it overlapped on the left and I dragged the marker down, the left marker would move down, and if it overlapped on the right and I dragged the marker right, the right marker would move up.

Actual Behavior

Trying to move the marker in the direction of the overlap doesn't do anything.

@ertandk
Copy link

ertandk commented Jan 3, 2024

I'm experiencing this problem too. Can you add a solution regarding this?

@ptomasroos
Copy link
Owner

Have you tried if this PR helps your case? #236

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

3 participants