← Back to release summary

Touch and TouchEvent constructors

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

Summary

The constructor creates a Touch/TouchEvent object from an init dictionary like other event types, also able to initialize UIEvent fields. More favorable than the old "document.create... + e.init..." way.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/Touch/Touch https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent

Samples: https://jsbin.com/lohuwa

View on chromestatus.com