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}
|
onmouseup={handleSeekBarMouseUp}
|
||||||
onmouseleave={handleSeekBarMouseLeave}
|
onmouseleave={handleSeekBarMouseLeave}
|
||||||
role="slider"
|
role="slider"
|
||||||
|
tabindex="0"
|
||||||
aria-label="Seek"
|
aria-label="Seek"
|
||||||
aria-valuenow={session.currentTime}
|
aria-valuenow={session.currentTime}
|
||||||
aria-valuemin={0}
|
aria-valuemin={0}
|
||||||
|
|||||||
@@ -119,12 +119,6 @@
|
|||||||
showCaptionSettings = !showCaptionSettings;
|
showCaptionSettings = !showCaptionSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleVideoClick() {
|
|
||||||
if (isPlayerMode) {
|
|
||||||
playbackTogglePlayPause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let clickTimer: ReturnType<typeof setTimeout> | null = null;
|
let clickTimer: ReturnType<typeof setTimeout> | null = null;
|
||||||
|
|
||||||
function handleVideoClickWithDelay(_e: MouseEvent) {
|
function handleVideoClickWithDelay(_e: MouseEvent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user