Fix jaggy lyric transitions, screen cutoffs, and broken swipe gestures in FullPlayer
Three real-device bugs reported after the lyrics overlay rebuild: the live line swapped text with no transition (now keyed + animated via CSS), the full lyrics screen's fade mask was too narrow for the larger font and had no safe-area bottom padding (widened + padded), and swipe-up-to-open did nothing on a real touchscreen (ad-hoc pointer handlers lacked move/cancel handling and touchAction: none - replaced with a shared useVerticalSwipe hook). Verifying the swipe fix in a real browser surfaced two further bugs invisible in jsdom: every focus() call in FullPlayer scrolls its target into view by default, firing while panels are still off-screen/mid- transition and dragging documentElement's scroll position around (fixed with preventScroll: true everywhere, plus locking documentElement's overflow alongside body's). And the lyrics header is only 64px tall, so a downward swipe crosses its bottom edge before the hook's deferred pointer capture can engage - useVerticalSwipe now tracks drags via window-level listeners instead of ones scoped to the dragged element. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment