diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-27 12:41:47 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-27 12:41:47 +0200 |
commit | 0039f102d03cd930a7694bc3a8bd90916e2dacf8 (patch) | |
tree | 42785d8c4439a4138d691ed648d31b2ebc476ffa | |
parent | 2774461d4e10f036dcaa9b78ec686b64f59be737 (diff) | |
download | jellything-0039f102d03cd930a7694bc3a8bd90916e2dacf8.tar jellything-0039f102d03cd930a7694bc3a8bd90916e2dacf8.tar.bz2 jellything-0039f102d03cd930a7694bc3a8bd90916e2dacf8.tar.zst |
fix chapter scrolling during load
-rw-r--r-- | web/script/player/mod.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts index 32ad355..6e3f962 100644 --- a/web/script/player/mod.ts +++ b/web/script/player/mod.ts @@ -210,7 +210,7 @@ function initialize_player(node_id: string): HTMLElement { pri = e("div", { class: "jsp-pri" }, pri_current = e("div", { class: "jsp-pri-current" }), chapters.liftA2(player.duration, - (chapters, duration) => e("div", ...chapters.map(chap => e("div", { + (chapters, duration) => duration == 0 ? e("div") : e("div", ...chapters.map(chap => e("div", { class: "jsp-chapter", style: { left: pri_map(chap.time_start ?? 0), |