mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
fix(danmuku): [PKG-DANMUKU-11] start visible lifetime after Worker placement
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user