• Checks if the mouse is on the given element.

    Parameters

    • element: HTMLElement

      To check if mouse is on it.

    Returns boolean