From 5c58af90369ab5dc108704f48a696a940adccef3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Jun 2026 10:54:53 -0400 Subject: [PATCH] fix: play from the playhead, not currentTime (iOS deep-link seek) On iOS the element doesn't load (so a deep-linked pre-seek doesn't stick) until the user's first tap, so engage-play! read currentTime=0 and played from the top. Seek to the playhead inside the play gesture and drive from there; for normal pause/resume the playhead already equals currentTime, so it's a no-op. Drops now-unused seg-at-src. Co-Authored-By: Claude Opus 4.8 --- tl/src/tl/views.cljs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tl/src/tl/views.cljs b/tl/src/tl/views.cljs index 0028b27..51eb52b 100644 --- a/tl/src/tl/views.cljs +++ b/tl/src/tl/views.cljs @@ -105,16 +105,6 @@ segs)) (max 0 (dec (count segs))))) -(defn- seg-at-src - "Index of the segment whose SOURCE range contains source frame `sf` (0 if none)." - [segs sf] - (or (first (keep-indexed (fn [i {[a b] :src}] - (when (or (and (<= a sf) (< sf b)) - (< sf a)) - i)) - segs)) - (max 0 (dec (count segs))))) - ;; The