mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 03:14:57 +08:00
fix(Lyric): 点击歌词跳转进度未应用偏移
This commit is contained in:
@@ -85,7 +85,8 @@ const amLyricsData = computed<LyricLine[]>(() => {
|
||||
const jumpSeek = (line: any) => {
|
||||
if (!line?.line?.lyricLine?.startTime) return;
|
||||
const time = msToS(line.line.lyricLine.startTime);
|
||||
player.setSeek(time);
|
||||
const offsetSeconds = statusStore.getSongOffset(musicStore.playSong?.id)
|
||||
player.setSeek(time - offsetSeconds);
|
||||
player.play();
|
||||
};
|
||||
|
||||
|
||||
@@ -276,7 +276,8 @@ const getYrcStyle = (wordData: LyricContentType, lyricIndex: number) => {
|
||||
const jumpSeek = (time: number) => {
|
||||
if (!time) return;
|
||||
lrcMouseStatus.value = false;
|
||||
player.setSeek(time);
|
||||
const offsetSeconds = statusStore.getSongOffset(musicStore.playSong?.id)
|
||||
player.setSeek(time - offsetSeconds);
|
||||
player.play();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user