Skip to content

Fix issues with rangeinput handle not moving on drag with jQuery 1.8 #847

Open
wants to merge 3 commits into from

2 participants

@DEfusion

jQuery 1.8 seems to not animate if the speed is passed as 0 so have accounted for that.

@frankc7777777

handle.width miss the parenthese ... :)

@frankc7777777

In my case , my progress bar is not working... I change a little code , maybe somebody has the same problem...

original...
prop = vertical ? 'top' : 'left',
prog = vertical ? (len - x + handle.height() / 2) : (x + handle.width / 2);
if( speed == 0 ) {
handle.css(prop, x);
if(conf.progress) { progress.css(prop, prog); }

fixed...
prop = vertical ? 'top' : 'left',
prop2 = vertical ? 'height' : 'width',
prog = vertical ? (len - x + handle.height() / 2) : (x + handle.width() / 2);
if( speed == 0 ) {
handle.css(prop, x);
if(conf.progress) { progress.css(prop2, prog); }

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.