From cb3b27f0c623e9bbd408ec9812d656957ba6e0a5 Mon Sep 17 00:00:00 2001 From: marwin Date: Mon, 16 Mar 2026 21:35:27 +0100 Subject: [PATCH] =?UTF-8?q?Scrollrad=20steuert=20Lautst=C3=A4rke=20in=204e?= =?UTF-8?q?r-Schritten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- static/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/js/app.js b/static/js/app.js index 6f66951..93304c7 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -205,6 +205,16 @@ if (volNumEl) { volNumEl.addEventListener('click', function () { this.select(); }); } +const volSliderEl2 = document.getElementById('volume'); +const volWheelTarget = volSliderEl2 || volNumEl; +if (volWheelTarget) { + volWheelTarget.addEventListener('wheel', function (e) { + e.preventDefault(); + const current = parseInt(document.getElementById('volume').value, 10); + setVolume(current + (e.deltaY < 0 ? 4 : -4)); + }, { passive: false }); +} + // --------------------------------------------------------------------------- // SSE metadata // ---------------------------------------------------------------------------