sliders: fix spring when init value equals zero

This commit is contained in:
jean-emmanuel 2016-11-25 18:43:50 +01:00
parent 91b5db7e39
commit e7bf3987da

View file

@ -45,7 +45,7 @@ var _sliders_base = module.exports = function(){
this.originValue = this.widgetData.origin=='auto'?
this.rangeValsMin:
clip(this.widgetData.origin,[this.rangeValsMin,this.rangeValsMax])
this.springValue = this.widgetData.value || this.originValue
this.springValue = this.widgetData.value != '' ? this.widgetData.value :  this.originValue
this.widget.on('fake-right-click',function(e){
if (!EDITING) {