Specification
https://w3c.github.io/pointerevents/#dom-wheelevent-momentum
Description
The wheel events on many native platforms simulate scrolling inertia: the events continue to fire for a while after the user has lifted the finger from the trackpad after a fling interaction. This feature exposes a momentum attribute in wheel events which is true only for those simulated events, differentiating them from the events fired during the physical scroll interaction. This lets web developers ignore fling events or customize rich fling effects.
Documentation
https://codepen.io/mustaqahmed/full/MYjGMVG
Browser support
This feature has been spec-ed recently, and is currently being implemented in Blink.
Specification
https://w3c.github.io/pointerevents/#dom-wheelevent-momentum
Description
The wheel events on many native platforms simulate scrolling inertia: the events continue to fire for a while after the user has lifted the finger from the trackpad after a fling interaction. This feature exposes a
momentumattribute in wheel events which is true only for those simulated events, differentiating them from the events fired during the physical scroll interaction. This lets web developers ignore fling events or customize rich fling effects.Documentation
https://codepen.io/mustaqahmed/full/MYjGMVG
Browser support
This feature has been spec-ed recently, and is currently being implemented in Blink.