mouseUp | |||||||
Type | message | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image | ||||||
Summary | Sent when the user releases the mouse button. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android, web | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Keyword: control Property: script Message: mouseStillDown, mouseDoubleUp, mouseRelease, mouseUpInBackdrop Command: click Function: mouseClick Glossary: field, handler, mouse button, Browse tool, message, message path, unlock, card, pixel, mouse pointer, image, object, double-click | ||||||
Description | Handle the mouseUp message to perform an action when the user releases the mouse button after clicking. The mouseUp message is sent to the control that was clicked, or to the card if no control was under the mouse pointer.
The mouseUp message is sent only when the Browse tool is being used. If an unlocked field is clicked with mouse button 1 or 2, no mouseUp message is sent. If the mouse has moved outside the control that was originally clicked before the user releases the mouse button, the mouseRelease message is sent instead of mouseUp. If the click is the second click of a double-click, the mouseDoubleUp message is sent instead of mouseUp.
If the user double-clicks an object whose script contains a mouseUp handler but no mouseDoubleUp, the above handler will automatically send a mouseUp to the object so the second click can be handled normally (instead of as a double-click). | ||||||
Tags | ui |