fix: add tabindex to seek bar slider role, remove dead handleVideoClick
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -158,6 +158,7 @@
|
||||
onmouseup={handleSeekBarMouseUp}
|
||||
onmouseleave={handleSeekBarMouseLeave}
|
||||
role="slider"
|
||||
tabindex="0"
|
||||
aria-label="Seek"
|
||||
aria-valuenow={session.currentTime}
|
||||
aria-valuemin={0}
|
||||
|
||||
@@ -119,12 +119,6 @@
|
||||
showCaptionSettings = !showCaptionSettings;
|
||||
}
|
||||
|
||||
function handleVideoClick() {
|
||||
if (isPlayerMode) {
|
||||
playbackTogglePlayPause();
|
||||
}
|
||||
}
|
||||
|
||||
let clickTimer: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
function handleVideoClickWithDelay(_e: MouseEvent) {
|
||||
|
||||
Reference in New Issue
Block a user