fader: add horizontal class

range: design name fix
This commit is contained in:
bordun 2020-03-23 16:28:44 +01:00
parent 41f2ce5210
commit 9531ae9cde
2 changed files with 3 additions and 1 deletions

View file

@ -60,6 +60,8 @@ module.exports = class Fader extends Slider {
super(options)
this.container.classList.toggle('horizontal', this.getProp('horizontal'))
this.gaugeGradient = null
}

View file

@ -296,7 +296,7 @@ class Range extends Fader {
this.clearRect = [0, 0, width, height]
} else if (this.getProp('design') === 'classic') {
} else if (this.getProp('design') === 'default') {
for (let _d of [d, d2]) {