horizontal scroll
This commit is contained in:
parent
b3b810c62c
commit
a89b6640a9
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ export const useRightControls = () => {
|
||||||
const handleVolumeWheel = useCallback(
|
const handleVolumeWheel = useCallback(
|
||||||
(e: WheelEvent<HTMLDivElement | HTMLButtonElement>) => {
|
(e: WheelEvent<HTMLDivElement | HTMLButtonElement>) => {
|
||||||
let volumeToSet;
|
let volumeToSet;
|
||||||
if (e.deltaY > 0) {
|
if (e.deltaY > 0 || e.deltaX > 0) {
|
||||||
volumeToSet = calculateVolumeDown(volume, volumeWheelStep);
|
volumeToSet = calculateVolumeDown(volume, volumeWheelStep);
|
||||||
} else {
|
} else {
|
||||||
volumeToSet = calculateVolumeUp(volume, volumeWheelStep);
|
volumeToSet = calculateVolumeUp(volume, volumeWheelStep);
|
||||||
|
|
Reference in a new issue