mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 01:35:08 +01:00
feat(player): add arrow up/down controls for volume
This commit is contained in:
parent
e91f65dd91
commit
e2dd74c0af
@ -63,6 +63,14 @@ export function KeyboardShortcutsAction() {
|
||||
toggleVolume();
|
||||
break;
|
||||
|
||||
case "arrowdown":
|
||||
controls.setVolume(Math.max(mediaPlaying.volume - 0.1, 0));
|
||||
break;
|
||||
|
||||
case "arrowup":
|
||||
controls.setVolume(Math.min(mediaPlaying.volume + 0.1, 1));
|
||||
break;
|
||||
|
||||
// Do a barrel Roll!
|
||||
case "r":
|
||||
if (isRolling || evt.ctrlKey || evt.metaKey) return;
|
||||
|
Loading…
Reference in New Issue
Block a user