← Back to release summary

Do not apply hover when mouse does not move

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 77)
Intent stage
None

Summary

To update the hover state when a page scrolls or changes layout, Blink currently dispatches fake mouse moves based on a timer because the mouse does not move. Unfortunately, every mouse move does a hit test which affects both performance and testing. This change applies the hover effect only when a mouse physically moves, improving performance and eliminating issues created by fake mouse events.

Standards & signals

Samples: https://output.jsbin.com/cekolep/quiet/

View on chromestatus.com