From a2eb55759900f27939118f31f93d829678c827ac Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 29 Jun 2025 17:26:52 -0700 Subject: [PATCH] Avoid warning when scrolling main window --- packages/webamp/js/actionCreators/media.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/webamp/js/actionCreators/media.ts b/packages/webamp/js/actionCreators/media.ts index 05e37d5d..b5296ef4 100644 --- a/packages/webamp/js/actionCreators/media.ts +++ b/packages/webamp/js/actionCreators/media.ts @@ -123,10 +123,12 @@ export function adjustVolume(volumeDiff: number): Thunk { } export function scrollVolume(e: React.WheelEvent): Thunk { - e.preventDefault(); + // https://github.com/facebook/react/issues/22794 + // e.preventDefault(); + // TODO: https://github.com/captbaritone/webamp/issues/1301 return (dispatch, getState) => { const currentVolume = getState().media.volume; - // Using pixels as percentage difference here is a bit arbirary, but... oh well. + // Using pixels as percentage difference here is a bit arbitrary, but... oh well. return dispatch(setVolume(currentVolume + e.deltaY)); }; }