One of the frustrations I had with sliders is that if the current value was set low and I picked a high value it just jumped there. I wanted to only move if my touch was within a certain distance of the current value.
I've come up this this change to changeValue for the Slider Widget.
I've picked 0.1 i.e.,I have to be within a tenth (of the length of the slider) of the current value for it to recognise the change.
If you will include this in the next version, I suggest that the ).1 becomes a settable property.
this.changeValue = function(val) {
var newv1,newv2,diff;
if(!this.isVertical) {
newv1 = 1 - ((this.x + this.width) - val) / (this.width);
}else{
newv1 = (((this.y + this.height) - val) / (this.height));
}
newv2=this.min + ( newv1 * ( this.max - this.min ) );
diff=Math.abs((this.value-newv2)/(this.max-this.min));
if (diff <0.1) {
this.setValue( newv2);
}
}
Best wishes
Terry