Slider: change `currLevel` -> `initLevel`

master
thyttan 2023-10-11 01:39:14 +02:00
parent 8cf9cd77bb
commit ac568fb332
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ try { // For making it possiblie to run the test app in the following catch stat
// Default configuration for the indicator, modified by parameter `conf`: // Default configuration for the indicator, modified by parameter `conf`:
o.c = Object.assign({ // constants go here. o.c = Object.assign({ // constants go here.
currLevel:null, initLevel:0,
horizontal:false, horizontal:false,
xStart:R.x2-R.w/4-4, xStart:R.x2-R.w/4-4,
width:R.w/4, width:R.w/4,
@ -64,7 +64,7 @@ try { // For making it possiblie to run the test app in the following catch stat
o.c.r = {x:o.c.xStart, y:o.c.yStart, x2:o.c.xStart+o.c.width, y2:o.c.yStart+o.c.height, w:o.c.width, h:o.c.height}; o.c.r = {x:o.c.xStart, y:o.c.yStart, x2:o.c.xStart+o.c.width, y2:o.c.yStart+o.c.height, w:o.c.width, h:o.c.height};
// Initialize the level // Initialize the level
o.v.level = o.c.currLevel!==null?o.c.currLevel:o.c.steps/2; o.v.level = o.c.initLevel;
// Only add interactivity if wanted. // Only add interactivity if wanted.
if (o.c.dragableSlider) { if (o.c.dragableSlider) {