Engine API Reference
    Preparing search index...

    Class Touch

    A instance of a single point touch on a TouchDevice.

    Index

    Constructors

    Properties

    Constructors

    • Create a new Touch object from the browser Touch.

      Parameters

      • touch: Touch

        The browser Touch object.

      Returns Touch

    Properties

    id: number

    The identifier of the touch.

    target: Element

    The target DOM element of the touch event.

    touch: Touch

    The original browser Touch object.

    x: number

    The x coordinate relative to the element that the TouchDevice is attached to.

    y: number

    The y coordinate relative to the element that the TouchDevice is attached to.