I want to have a window listener that picks up wheel events like so
window.addEventListener('wheel', onWheel)
The issue is on macOS, the iOS/browser seems to generate synthetic inertial events based on the user's scroll velocity. If I two-finger-swipe my trackpad I get a bunch of synthetic events after the gesture has ended.
Is there any way to disable this behavior? (I'm using react, if there happens to be a react-only way to do this).
NOTE: I still want user-initiated scroll events, I just don't want the OS-initiated synthetic events.