mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-16 06:58:16 +08:00
重写controller部分,修改search界面,添加歌词滚动效果,部分资源添加到bundle,修复拖动进度条时产生的噪音
This commit is contained in:
@@ -37,14 +37,14 @@ func (l *LyricLoader) Reload(lyric string) {
|
||||
}
|
||||
|
||||
func (l *LyricLoader) Update(time float64) {
|
||||
lrc := l.Lyric.Find(time)
|
||||
lrc := l.Lyric.FindContext(time, 1, 3)
|
||||
if lrc == nil {
|
||||
return
|
||||
}
|
||||
if l.prev == lrc.Time {
|
||||
if l.prev == lrc.Now.Time {
|
||||
return
|
||||
}
|
||||
l.prev = lrc.Time
|
||||
l.prev = lrc.Now.Time
|
||||
l.Handler.CallA(
|
||||
model.EventLyricUpdate,
|
||||
model.LyricUpdateEvent{
|
||||
|
||||
Reference in New Issue
Block a user