mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Improve responsive styles for playerbar
This commit is contained in:
parent
cf43bf360e
commit
f380eccc68
5 changed files with 62 additions and 31 deletions
|
|
@ -79,7 +79,7 @@ export const useRightControls = () => {
|
|||
}, [setVolume, volume, volumeWheelStep]);
|
||||
|
||||
const handleVolumeWheel = useCallback(
|
||||
(e: WheelEvent<HTMLDivElement>) => {
|
||||
(e: WheelEvent<HTMLDivElement | HTMLButtonElement>) => {
|
||||
let volumeToSet;
|
||||
if (e.deltaY > 0) {
|
||||
volumeToSet = calculateVolumeDown(volume, volumeWheelStep);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue