1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix: don’t change volume when dialog is shown

The dialog on the player could present a large list, requiring scrolling to find the desired option, such as a subtitle or audio track in a huge language list. Changing the volume in these cases will be very annoying.
This commit is contained in:
gnattu 2024-04-21 01:06:39 +08:00
parent b1f786b270
commit f596b114da

View file

@ -1351,6 +1351,7 @@ export default function (view) {
}
function onWheel(e) {
if (getOpenedDialog()) return;
if (e.deltaY < 0) {
playbackManager.volumeUp(currentPlayer);
}