• Aryan Noshirvnai's avatar
    Fix jaggy lyric transitions, screen cutoffs, and broken swipe gestures in FullPlayer · 3f615474
    Aryan Noshirvnai authored
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    3f615474
Name
Last commit
Last update
..
api Loading commit data...
assets Loading commit data...
components Loading commit data...
context Loading commit data...
hooks Loading commit data...
lib Loading commit data...
pages Loading commit data...
test Loading commit data...
App.tsx Loading commit data...
index.css Loading commit data...
main.tsx Loading commit data...