知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
fix: stepping through search matches while a recording plays no longer jumps back to the line playing
wquguru1b1111cc46c6
diff --git a/Sources/Cicada/Views.swift b/Sources/Cicada/Views.swiftindex 24756b1..2def285 100644--- a/Sources/Cicada/Views.swift+++ b/Sources/Cicada/Views.swift@@ -1530,7 +1530,11 @@ struct MainWindowView: View {}}.onChange(of: currentMatch) { _, id in- if let id { withAnimation { proxy.scrollTo(id, anchor: .center) } }+ guard let id else { return }+ // Going to a line found while the recording plays stops following it, as a scroll by+ // hand does: otherwise the next line heard pulls the page back within seconds.+ if player.sessionID == s.id { player.userScrolled() }+ withAnimation { proxy.scrollTo(id, anchor: .center) }}.onAppear {if let t = jumpTo, let l = s.lines.first(where: { $0.t >= t - 1 }) { proxy.scrollTo(l.id, anchor: .top) }