← Back to release summary

Change click, auxclick and contextmenu event types to PointerEvent

Category
User input
Type
Chromium catches up
Status
Enabled by default (Chrome 92)
Intent stage
Shipped

Summary

Change “click”, “contextmenu”, “auxclick” events to PointerEvent (instead of MouseEvent) to let developers: distinguish between mouse, pen and individual fingers in a multitouch interaction through pointerType and pointerId attributes, and utilize fractional event coordinates for high precision use cases.

Standards & signals

View on chromestatus.com