← Back to release summary

Fractional coordinates in MouseEvents

Category
User input
Type
New or changed feature
Status
Enabled by default (Chrome 56)
Intent stage
None

Summary

Update the types of all coordinates in MouseEvents from long to double to make the coordinates more precise for PointerEvents on high-DPI devices. Note, however, that the only browser-fired events that will change are PointerEvents. MouseEvents will continue to have integral coordinates for backward compatibility.

Standards & signals

Samples: https://output.jsbin.com/quqoqe/4/quiet

View on chromestatus.com