⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 583: Fix Timeline Bar Width/Behavior on Scene Switch

未着手 ← タスク一覧

Task 583: Fix Timeline Bar Width/Behavior on Scene Switch

Status: DONE

Description

Human directive phase 33: "時間のバーの幅が誤っている。特に切り替え時。"

Multiple bugs in the inline 3D viewer's timeline controls:

  1. Slider→day conversion bug: Slider input handler passed fraction (0-1) instead

of day value to updateTimelineFrame(day). Full-route worked by accident (frac≈0

at start) but local scenes were broken.

  1. Scene switch stale state: switchScene() didn't update container.dataset.scene,

so the tick() loop always used the initial scene's totalDays even after switching.

  1. Time display: Used Math.round(day) + "日" which shows "0日" for local scenes

(totalDays < 5 days). Added fmtDay() matching standalone HTML's formatDays().

  1. Transfer label: .viewer3d-label element existed but was never populated.

Added getLabel(day) matching transfers to current time.

  1. Timeline end: Play button didn't revert to ▶ when animation finished.

Added _onTimelineEnd callback and reset-on-replay logic.

Files