Engine API Reference - v2.20.0-beta.0
    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 { x: number; y: number }

      The coordinates of the touch relative to the touch.target DOM element.