fix: allow for negative and positive slider values
parent
2f40b9c7cf
commit
f16328ab81
|
@ -275,9 +275,7 @@ export default {
|
||||||
return {'bottom': this.handlePosition + '%'};
|
return {'bottom': this.handlePosition + '%'};
|
||||||
},
|
},
|
||||||
handlePosition() {
|
handlePosition() {
|
||||||
if (this.modelValue === 0)
|
if (this.modelValue < this.min)
|
||||||
return 0;
|
|
||||||
else if (this.modelValue < this.min)
|
|
||||||
return 0;
|
return 0;
|
||||||
else if (this.modelValue > this.max)
|
else if (this.modelValue > this.max)
|
||||||
return 100;
|
return 100;
|
||||||
|
|
Loading…
Reference in New Issue