Closed tevanc14 closed 5 years ago
Also having this problem. I understand it will cause a difficult design issue - when they overlap, how do you determine if the lower or upper thumb is tapped?
One possibility is to remove the distinction and just have whichever has the lower value to be the lower thumb, but that would require a new method of determining which is currently being dragged.
Hi, I just released version 1.1.0 which now "normally" corrects this behavior.
If both sliders are moved toward the same position with a small amount of discrete divisions, the thumbs will overlap as expected.
If the same is done with a larger number of divisions (enough so that the overlays collide) the thumbs will not overlap.
Continuous slider thumbs never overlap and, if the range is large enough, will not even explore all of the possibilities of the slider.
I am unsure if the lack of continuous overlapping is by design or not, but I believe the discrete behavior inconsistencies to be a bug. Upon initial observations, collision seems to be determined upon if the thumb shapes themselves are colliding, which causes problems when the divisions are smaller than the size of the thumb shape.
A demonstration of this behavior derived from your example is below:
Let me know if any part of this is unclear, thanks.