From a89b6640a921e5e60e0ecb46cc1c5588008f9295 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:15:18 -0700 Subject: [PATCH] horizontal scroll --- src/renderer/features/player/hooks/use-right-controls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/features/player/hooks/use-right-controls.ts b/src/renderer/features/player/hooks/use-right-controls.ts index 186fb5b0..eac4e805 100644 --- a/src/renderer/features/player/hooks/use-right-controls.ts +++ b/src/renderer/features/player/hooks/use-right-controls.ts @@ -100,7 +100,7 @@ export const useRightControls = () => { const handleVolumeWheel = useCallback( (e: WheelEvent) => { let volumeToSet; - if (e.deltaY > 0) { + if (e.deltaY > 0 || e.deltaX > 0) { volumeToSet = calculateVolumeDown(volume, volumeWheelStep); } else { volumeToSet = calculateVolumeUp(volume, volumeWheelStep);