Add ability to seek video -0.1/+0.1 seconds with ctrl/meta modifier key on arrow down/up

This commit is contained in:
Chris Wilson 2024-07-28 13:37:08 -07:00
parent 7c39b176ac
commit 054a576b77

View File

@ -148,17 +148,25 @@ export default function VideoControls({
switch (key) {
case "ArrowDown":
onSeek(-1);
if (modifiers.ctrl) {
onSeek(-0.1);
} else {
onSeek(-1);
}
break;
case "ArrowLeft":
onSeek(-10);
break;
case "ArrowUp":
if (modifiers.ctrl) {
onSeek(1 / 30);
} else {
onSeek(1);
}
break;
case "ArrowRight":
onSeek(10);
break;
case "ArrowUp":
onSeek(1);
break;
case "f":
if (toggleFullscreen && !modifiers.repeat) {
toggleFullscreen();