• 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
public Loading commit data...
src Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.oxlintrc.json Loading commit data...
README.md Loading commit data...
index.html Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
tsconfig.app.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.node.json Loading commit data...
vite.config.ts Loading commit data...