[comp.sys.mac.hypercard] Preventing MouseClick Actions. Why does this work?

geoff@pmafire.UUCP (Geoff Allen) (07/13/89)

A while back, Peggy Lerch wrote asking for a way to prevent mouseClick
actions (She had an enthousiastic youngster who clicked away at a
button.  Each click got queued up, so the handler executed over and over
again.)

Jim Taylor responded with the simple solution to add "wait until the
mouse is up" at the end of the script.  It works! I've used it a stack
I'm working on.  My question is why.

When a normal handler is executing, any further events (e.g. mouseUp)
get queued up to be handled when the present handler is through.  I
don't understand why waiting until the mouse is up clears any mouseUps
which occurred during the time the script was running.

Maybe some of the higher gurus of HyperCard can explain this.
-- 
Geoff Allen - WINCO Systems Engineering  |  Disclaimer:  WINCO doesn't believe
...{uunet|bigtex}!pmafire!geoff          |    in Macs, so of course these are
...ucdavis!egg-id!pmafire!geoff          |    only my own views.