From f596b114da53a5a8109e1b23dfabb04221315608 Mon Sep 17 00:00:00 2001 From: gnattu Date: Sun, 21 Apr 2024 01:06:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20change=20volume=20when?= =?UTF-8?q?=20dialog=20is=20shown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/controllers/playback/video/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/playback/video/index.js b/src/controllers/playback/video/index.js index deac178c73..5f3b101877 100644 --- a/src/controllers/playback/video/index.js +++ b/src/controllers/playback/video/index.js @@ -1351,6 +1351,7 @@ export default function (view) { } function onWheel(e) { + if (getOpenedDialog()) return; if (e.deltaY < 0) { playbackManager.volumeUp(currentPlayer); }