crossfader: tweak layout for ios compatibility (issue #121)
This commit is contained in:
parent
e6841ec43f
commit
48708113ce
2 changed files with 22 additions and 18 deletions
|
|
@ -26,12 +26,20 @@ module.exports = class Crossfader extends Switcher {
|
|||
this.fader = new Fader({props:{
|
||||
...faderDefaults,
|
||||
horizontal: this.getProp('horizontal'),
|
||||
range: {min:{'A':0}, '50%':{" ":0.5},max:{'B':1}}
|
||||
range: {min:{'A':0}, '50%':{" ":0.5},max:{'B':1}},
|
||||
input: false
|
||||
}, parent: this})
|
||||
|
||||
this.fader.sendValue = ()=>{}
|
||||
|
||||
this.widget.appendChild(DOM.create('<div class="fader-container"></div>')).appendChild(this.fader.widget)
|
||||
this.widget.appendChild(this.fader.widget)
|
||||
|
||||
if (this.getProp('horizontal')) {
|
||||
this.widget.classList.add('horizontal')
|
||||
} else {
|
||||
this.widget.classList.add('vertical')
|
||||
|
||||
}
|
||||
|
||||
this.fader.on('change', (e)=>{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue