More Fun with mouseMove

Kevin Miller kevin at runrev.com
Fri Mar 22 11:41:01 EST 2002


On 20/3/02 9:05 pm, Scott Rossi <scott at tactilemedia.com> wrote:

> on mouseMove x,y
>  if not the uAllowDrag of me then exit mouseMove
>  put globalLoc(x & "," & y) into tLoc
>  set topLeft of this stack to \
>      item 1 of tLoc - item 1 of the clickLoc,\
>      item 2 of tLoc - item 2 of the clickLoc
> end mouseMove

Note that you can speed this up slightly by storing the clickLoc value in a
variable rather than calling the function each time.

Kevin

Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.




More information about the use-livecode mailing list