1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-30 16:17:41 +01:00

chore(player): add comments to up/down kb events

This commit is contained in:
Jip Fr 2023-03-30 19:54:06 +02:00
parent e2dd74c0af
commit 80954514b6
2 changed files with 3751 additions and 4013 deletions

View file

@ -63,10 +63,12 @@ export function KeyboardShortcutsAction() {
toggleVolume();
break;
// Decrease volume
case "arrowdown":
controls.setVolume(Math.max(mediaPlaying.volume - 0.1, 0));
break;
// Increase volume
case "arrowup":
controls.setVolume(Math.min(mediaPlaying.volume + 0.1, 1));
break;

7762
yarn.lock

File diff suppressed because it is too large Load diff