Engine API Reference - v2.6.1
    Preparing search index...

    Function getTouchTargetCoords

    • This function takes a browser Touch object and returns the coordinates of the touch relative to the target DOM element.

      Parameters

      • touch: Touch

        The browser Touch object.

      Returns any

      The coordinates of the touch relative to the touch.target DOM element. In the format {x, y}.