now the overlay delay time will change with the stack depth

This commit is contained in:
Spedon
2023-03-24 16:53:31 +08:00
parent 26661911dc
commit 5b172414ec
2 changed files with 4 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ async function enterOverlay(): Promise<void> {
e.style.transitionDelay = `${0.1 * i}s`
}
}
await delay(1600)
await delay(stackDepth * 100 + 100 + 1000)
// Offset previous self increment of global index (by handleOnMove)
globalIndexDec()
// overlay init