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

draggable range sliders #1351

Closed
alon-jacobi opened this issue May 13, 2017 · 4 comments
Closed

draggable range sliders #1351

alon-jacobi opened this issue May 13, 2017 · 4 comments

Comments

@alon-jacobi
Copy link

With IntRangeSlider and FloatRangeSlider, it is possible to drag each end of the slider to modify the value.
It would be useful if, when dragging the bar itself (and not the min/max markers), both the min and max would shift accordingly.
That way, when using a slider with 0,100 limit and current values 0,10, dragging the slider to 10,20 would be easier and not require dragging each of the markers individually.

@jasongrout
Copy link
Member

Great idea. It looks like this is maybe implemented by a jqueryui extension, or I think it is also implemented in other slider implementations (see our discussion about replacing the slider with other sliders at #630)

@jasongrout jasongrout added this to the Future milestone May 15, 2017
@jasongrout
Copy link
Member

It looks like it may have been added to jqueryui at some point: jquery/jquery-ui#331, but I don't seem to find anything about the rangeDrag option now.

@thomasaarholt
Copy link

It looks like the PR in jquery/jquery-io#331 was never merged, @jasongrout.

I would like to see this feature implemented too.

I found a reference to it here: https://github.com/rassokhin-s/jquery.ui.slider.dragRange
What does it take to implement it in ipywidgets?

@vidartf
Copy link
Member

vidartf commented Jun 17, 2022

This is possible in master (for upcoming 8.0 release) after the switch of the slider library.

@vidartf vidartf closed this as completed Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants