← Back to release summary

Wheel event momentum

Category
User input
Type
Chromium catches up
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Exposes a momentum attribute in wheel events to mark native platforms events for scrolling inertia. After the user has lifted the finger from the trackpad after a fling interaction, many native platforms continue to fire wheel events for a while to simulate scrolling inertia. The momentum attribute here differentiates those simulated events them from the events fired during the physical trackpad interaction, allowing web developers ignore fling events or customize rich fling effects.

Standards & signals

Samples: https://codepen.io/mustaqahmed/full/MYjGMVG

View on chromestatus.com