mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
chore(player): add comments to up/down kb events
This commit is contained in:
parent
e2dd74c0af
commit
80954514b6
2 changed files with 3751 additions and 4013 deletions
|
@ -63,10 +63,12 @@ export function KeyboardShortcutsAction() {
|
||||||
toggleVolume();
|
toggleVolume();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Decrease volume
|
||||||
case "arrowdown":
|
case "arrowdown":
|
||||||
controls.setVolume(Math.max(mediaPlaying.volume - 0.1, 0));
|
controls.setVolume(Math.max(mediaPlaying.volume - 0.1, 0));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Increase volume
|
||||||
case "arrowup":
|
case "arrowup":
|
||||||
controls.setVolume(Math.min(mediaPlaying.volume + 0.1, 1));
|
controls.setVolume(Math.min(mediaPlaying.volume + 0.1, 1));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue