fix(ui): capture zoom wheel
cx
This commit is contained in:
1 parent
ca8fc13044
commit
e0117e9625
1 file changed
+3
-2
@@ -63,8 +63,9 @@ function handleZoomWheel(event: WheelEvent): void {
|
||||
}
|
||||
|
||||
export function setupZoomControls(): () => void {
|
||||
window.addEventListener('wheel', handleZoomWheel, { passive: false });
|
||||
return () => window.removeEventListener('wheel', handleZoomWheel);
|
||||
const options: AddEventListenerOptions = { passive: false, capture: true };
|
||||
window.addEventListener('wheel', handleZoomWheel, options);
|
||||
return () => window.removeEventListener('wheel', handleZoomWheel, options);
|
||||
}
|
||||
|
||||
// ============ Last.fm Session ============
|
||||
|
||||
Reference in new issue
Block a user