tweaks showStep logic
This commit is contained in:
parent
eb996bf112
commit
cd9b3501a0
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
function showStep(i: number) {
|
||||
if (preload === 0) return true;
|
||||
if (stackBackground) return i <= index;
|
||||
if (stackBackground) return i >= 0;
|
||||
return i >= index - preload && i <= index + preload;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue