Page 1 of 1

Mousemove action outside the card

Posted: Tue Feb 22, 2022 1:07 am
by dunbarx
This started with the thread:
viewtopic.php?f=8&t=36761

With this in a card script:

Code: Select all

on mouseMove x,y
   put the mouseLoc
end mouseMove
Anywhere in the card a value is returned as one moves the cursor. The handler stops working if one leaves the card window. But if one holds the mouse down while moving, a value is returned wherever on screen the cursor might be. This is not really addressed in the dictionary, and was only discovered by accident while fooling around in the thread mentioned above.

Craig

Re: Mousemove action outside the card

Posted: Tue Feb 22, 2022 3:54 pm
by mrcoollion
It is mentioned here : https://livecode.fandom.com/wiki/MouseMove
If the mouse button is down, the mouseMove message continues to be sent to the object that was clicked, even if the [[mouse pointer]] moves outside that object.