sliders: prevent sending the same value over and over while using mousewheel

This commit is contained in:
jean-emmanuel 2016-10-11 17:36:26 +02:00
parent 1acbc38723
commit 580d2c747b

View file

@ -104,7 +104,7 @@ _sliders_base.prototype.mousewheelHandle = function(e, data, traversing) {
this.percent = clip(this.percent + Math.max(increment,10/Math.pow(10,this.widgetData.precision)) * direction ,[0,100])
this.setValue(this.percentToValue(this.percent), {sync:true,send:true})
this.setValue(this.percentToValue(this.percent), {sync:true,send:true,dragged:true})
}