mozilla
Your Search Results

    Document.createTouch()

    This article is in need of a technical review.

    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

    Contributors to this page: Sheppy, MHasan, fscholz, nairakhil13, kscarfone, kohei.yoshino, teoli
    Last updated by: teoli,