1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Merge branch 'dev' into time-format

This commit is contained in:
Emre Can Minnet 2023-04-24 01:14:44 +03:00 committed by GitHub
commit 01348f2f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "movie-web",
"version": "3.0.12",
"version": "3.0.13",
"private": true,
"homepage": "https://movie-web.app",
"dependencies": {

View file

@ -7,12 +7,12 @@ export function useVolumeControl(descriptor: string) {
const controls = useControls(descriptor);
const mediaPlaying = useMediaPlaying(descriptor);
const toggleVolume = () => {
const toggleVolume = (isKeyboardEvent = false) => {
if (mediaPlaying.volume > 0) {
setStoredVolume(mediaPlaying.volume);
controls.setVolume(0);
controls.setVolume(0, isKeyboardEvent);
} else {
controls.setVolume(storedVolume > 0 ? storedVolume : 1);
controls.setVolume(storedVolume > 0 ? storedVolume : 1, isKeyboardEvent);
}
};

View file

@ -60,7 +60,7 @@ export function KeyboardShortcutsAction() {
// Mute
case "m":
toggleVolume();
toggleVolume(true);
break;
// Decrease volume