horizontal scroll

This commit is contained in:
Kendall Garner 2024-10-01 18:15:18 -07:00
parent b3b810c62c
commit a89b6640a9
No known key found for this signature in database
GPG Key ID: 18D2767419676C87

View File

@ -100,7 +100,7 @@ export const useRightControls = () => {
const handleVolumeWheel = useCallback(
(e: WheelEvent<HTMLDivElement | HTMLButtonElement>) => {
let volumeToSet;
if (e.deltaY > 0) {
if (e.deltaY > 0 || e.deltaX > 0) {
volumeToSet = calculateVolumeDown(volume, volumeWheelStep);
} else {
volumeToSet = calculateVolumeUp(volume, volumeWheelStep);