Merge pull request #1401 from ether/slider-position
Fix #1360 -- slider pin positionpull/1402/merge
commit
0c3d90b753
|
@ -361,7 +361,11 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
|
||||||
$(self).css('left', newloc);
|
$(self).css('left', newloc);
|
||||||
// if(getSliderPosition() != Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width()-2)))
|
// if(getSliderPosition() != Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width()-2)))
|
||||||
setSliderPosition(Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2)))
|
setSliderPosition(Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2)))
|
||||||
self.currentLoc = parseInt($(self).css('left'));
|
if(parseInt($(self).css('left')) < 2){
|
||||||
|
$(self).css('left', '2px');
|
||||||
|
}else{
|
||||||
|
self.currentLoc = parseInt($(self).css('left'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue