mirror of
https://github.com/generativefm/generative.fm.git
synced 2026-04-26 03:00:08 -04:00
Set wheel event listener passive to false to enable preventDefault
This commit is contained in:
@@ -30,8 +30,9 @@ const SliderComponent = ({ pct, onChange }) => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener('wheel', handleScroll);
|
||||
return () => window.removeEventListener('wheel', handleScroll);
|
||||
window.addEventListener('wheel', handleScroll, { passive: false });
|
||||
return () =>
|
||||
window.removeEventListener('wheel', handleScroll, { passive: false });
|
||||
});
|
||||
|
||||
const handleMouseMove = event => {
|
||||
|
||||
Reference in New Issue
Block a user