returns the position of the most recent mouse click.
# Metadata
Platforms: desktop, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
the clickLoc
# Examples
the clickLoc
if the clickLoc is the mouseLoc then send mouseUp to me
# Description
Use the clickLoc function to determine where a user clicked, or to determine whether the mouse pointer has moved since the last click.
The first item of the returned value is the horizontal distance in pixels from the left edge of the clicked stack to the location of the click. (Use the clickStack function to identify which stack was clicked.) The second item of the return value is the vertical distance from the top edge of the clicked stack to the location of the click.
The click location is the position of the mouse pointer when the user pressed the mouse button, not when the user released the button. In particular, inside a mouseDown handler, the clickLoc returns the position of the mouse as it was when the mouse down action occurred.
# Tags
ui,
# See
- **glossary:** integer, mouse pointer, return value, return - **message:** linkClicked, mouseDoubleUp, mouseStillDown - **keyword:** item - **object:** stack - **control structure:** function - **command:** popup, click - **function:** mouseClick, selectedLoc, clickH, clickV, clickStack