sliders: fix spring when init value equals zero
This commit is contained in:
parent
91b5db7e39
commit
e7bf3987da
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue