Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Click on track to change slider value #55

Open
chrisjhill opened this Issue · 5 comments

6 participants

@chrisjhill

Hello, is it possible to click on any part of the slider's track, and the slider value will then update? jQuery UI does this (I know this isn't UI, but heh).

Thank you!

@rando

Vote for this issue. It will be great possibility.

@itsanmax

Yes, It will be really great to get this feature and I'm waiting for this.

Thanks for this great plugin!

@jeremypele

Hey guys,

I was aving this kind of issue and this is what I've quickly did to overcome that:

$(".layout-slider").mouseup(function(e){
var slide_settings = $("#myslider").slider().settings ;
var steps = $(this).width() / slide_settings.scale.length;
var step_to_chose = slide_settings.from + (Math.round(e.offsetX / steps) * slide_settings.step) ;
$("#SliderClothes").slider("value",step_to_chose);
});

Basically you catch the click position into the zone and you're ready to go (check your padding zone). It's experimental but if it can help.

Cheers!

@amyth

Vote, Was actually looking for this feature and after going through the code, checking the Issues list was the first thing I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.