Constraining 'grab'

Ken Norris (dialup) pixelbird at interisland.net
Tue Mar 5 21:35:01 EST 2002


on 3/5/02 10:18 AM, Scott Rossi at scott at tactilemedia.com wrote:

> 
> On Tuesday, March 5, 2002, at 10:26  AM, Ken Norris (dialup) wrote:
> 
>> I don't understand why
>> you use both 'on mouseUp' and on 'mouseRelease'. Aren't they the same
>> thing?
> 
> No.  MouseRelease is used to trap when the user releases the mouse
> outside of the dragged control.  A control cannot receive a mouseUp
> message if the mouse is not within the rect of the control.
----------
So this procedure is a safety measure which "catches" and deals with a
situation where someone is whanging the cursor outside the dragged object by
moving it faster than the object can follow it, then releasing the mouse
before the object catches up. Is this the scenario where you'd need this?
 
Best regards,
Ken N.




More information about the use-livecode mailing list