Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

DocumentTouch.createTouch Redirect 1

« DOM Reference

Obsolete since Gecko 25 (Firefox 25 / Thunderbird 25 / SeaMonkey 2.22)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Note: As of Gecko 25.0, this method has been renamed to Document.createTouch.

Summary

This method creates and returns a new Touch object.

Syntax

var touch = DocumentTouch.createTouch(view, target, identifier, pageX, pageY,
                                      screenX, screenY, clientX, clientY,
                                      radiusX, radiusY, rotationAngle, force);

Parameters

Note: All parameters are optional.
view
The window in which the touch occurred.
target
The EventTarget for the touch.
identifier
The value for Touch.identifier.
pageX
The value for Touch.pageX.
pageY
The value for Touch.pageY.
screenX
The value for Touch.screenX.
screenY
The value for Touch.screenY.
clientX
The value for Touch.clientX.
clientY
The value for Touch.clientY.
radiusX
The value for Touch.radiusX.
radiusY
The value for Touch.radiusY.
rotationAngle
The value for Touch.rotationAngle.
force
The value for Touch.force.

Return value

touch
A Touch object configured as described by the input parameters.

See also

Specification

Touch Events Specification

Document Tags and Contributors

 Last updated by: Sheppy,