stacked faders are now horizontal

This commit is contained in:
jean-emmanuel 2015-04-12 00:24:46 +02:00 • committed by Jean-Emmanuel
parent 85fe3139b4
commit 0c5b77e848
4 changed files with 337 additions and 254 deletions

View file

@ -97,7 +97,6 @@ function parsewidgets(widgets,parent) {
<div class="title" '+color+'>'+title+'</div>\
<div class="stack-wrapper">\
</div>\
<input disabled></input>\
</div>\
');
@ -203,12 +202,15 @@ function parsewidgets(widgets,parent) {
}
var pips = pips();
var orientation = parent.hasClass('stack-wrapper')?'horizontal':'vertical',
direction = parent.hasClass('stack-wrapper')?'ltr':'rtl',
density = parent.hasClass('stack-wrapper')?'2':'1';
$widget.fader
.noUiSlider({
orientation:'vertical',
direction: "rtl",
behaviour: "none-drag",
orientation:orientation,
direction: direction,
behaviour: "drag",
connect: "lower",
//animate:false,
start: 0,
@ -216,7 +218,7 @@ function parsewidgets(widgets,parent) {
})
.noUiSlider_pips({
mode: 'values',
density: 1,
density: density,
filter:function(v,t){return v==0?1:2;},
values: pips,
format: wNumb({})