SliderInput: default prevLevel to middle of range.

master
thyttan 2023-08-17 02:49:35 +02:00
parent 32903324ae
commit 49d8346098
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ const STEP_SIZE = HEIGHT/STEPS;
// Initialize the level
let level;
let prevLevel = conf.currLevel || 0;
let prevLevel = conf.currLevel || STEPS/2;
let levelHeight;
let firstRun = true;