BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Function isClickedOnElement

    • Checks if a click occurred within the bounds of an element.

      Parameters

      • elem: HTMLElement

        The element to check.

      • x: number

        The x-coordinate of the click.

      • y: number

        The y-coordinate of the click.

      Returns boolean

      True if the click was on the element, false otherwise.