debug: add logging to diagnose lyrics sync issue in ExpandedPlayer
This commit is contained in:
1 parent
68d5704083
commit
50fd847ce2
2 files changed
+7
No files matched your search
@@ -93,7 +93,9 @@
|
||||
|
||||
// Ensure lyrics updates run when ExpandedPlayer is open with synced lyrics
|
||||
$effect(() => {
|
||||
console.log('[ExpandedPlayer] Effect check:', { isOpen, isPlaying, lyricsSynced, lyricsActiveIndex, hasLyrics: lyricsLines.length > 0 });
|
||||
if (isOpen && isPlaying && lyricsSynced) {
|
||||
console.log('[ExpandedPlayer] Starting lyrics updates');
|
||||
startActiveLineUpdates();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
let prevActiveIndex = -1;
|
||||
let hasInitialSync = false;
|
||||
|
||||
// Debug logging
|
||||
$effect(() => {
|
||||
console.log('[LyricsLines] Props:', { linesCount: lines.length, activeIndex, activeProgress: activeProgress.toFixed(2), isSynced, immersive });
|
||||
});
|
||||
|
||||
// Calculate opacity based on distance from active line
|
||||
function getLineOpacity(index: number, active: number): number {
|
||||
if (!dimInactive || active < 0) return 1;
|
||||
|
||||
Reference in new issue
Block a user