fix(danmuku): [PKG-DANMUKU-11] start visible lifetime after Worker placement

This commit is contained in:
Harvey Zhao committed 2026-09-13 22:24:09 +08:00
1 parent 24b883d862
commit df6a6fe82e
18 files changed
+3328 -9

No files matched your search

@@ -175,6 +175,8 @@ export default class Scheduler {
if (!this.active(operation) || danmu.$ref !== ref)
return
if (top !== undefined) {
// The hidden Worker wait must not consume the CSS-visible lifetime.
danmu.$lastStartTime = Date.now()
owner.setState(danmu, 'emit')
owner.renderer.place(danmu, ref, top, distance, clientWidth)
operation.ref = null