You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] dcc.RangeSlider ignores allowCross=False and lets handles cross #3935
Reproduced at commit: 3d3a9f70f452fba4dc385db94590009ce44031fc
OS: Ubuntu 24.04.4 LTS
Browser: Google Chrome 151.0.7922.71
The bug
dcc.RangeSlider does not enforce allowCross=False. When the lower thumb is
dragged past the upper thumb, the dragged thumb crosses it and becomes the new
upper thumb.
For example, a slider starting at [5, 15] ends at [15, 18] after its lower
thumb is dragged toward 18. The returned array is still sorted, but the thumb
identity and resulting interval prove that crossing occurred despite being
explicitly disabled. Application callbacks therefore cannot rely on the allowCross=False constraint.
Drag the lower handle from 5 past the upper handle at 15, toward 18.
Observe that the dragged thumb passes the other thumb and the callback
reports value=[15, 18] and drag_value=[15, 18].
Expected behavior
With allowCross=False, a handle should stop when it reaches its neighboring
handle. In the example above, dragging the lower handle toward 18 should
clamp both handles at 15, producing:
value=[15, 15]
drag_value=[15, 15]
The same no-cross constraint should apply to pointer, keyboard, Home/End, and
direct-input interactions, with both updatemode="drag" and updatemode="mouseup".
Activity
robertclaus commentedon Aug 3, 2026
Thanks for opening the issue! @KoolADE85 will take a look at the PR.