fix: add tabindex to seek bar slider role, remove dead handleVideoClick

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-22 19:16:04 -04:00
parent 7e838dc391
commit 711f18ffe5
2 changed files with 1 additions and 6 deletions

View File

@@ -158,6 +158,7 @@
onmouseup={handleSeekBarMouseUp}
onmouseleave={handleSeekBarMouseLeave}
role="slider"
tabindex="0"
aria-label="Seek"
aria-valuenow={session.currentTime}
aria-valuemin={0}

View File

@@ -119,12 +119,6 @@
showCaptionSettings = !showCaptionSettings;
}
function handleVideoClick() {
if (isPlayerMode) {
playbackTogglePlayPause();
}
}
let clickTimer: ReturnType<typeof setTimeout> | null = null;
function handleVideoClickWithDelay(_e: MouseEvent) {