mouseUp stacking from user double clicks

Sarah Reichelt sarah.reichelt at gmail.com
Sun Mar 26 17:18:15 EST 2006


On 3/27/06, Ben Bock <benbock at msn.com> wrote:
> My user app is a series of quizzes.  In troubleshooting, I found that if users "double click" a button (either from error or impatience) that both codes an answer and moves to the next card-item, the second, unnecessary click will transfer to the next card.  How can I stop this?
>

A couple of ways:

1. Trap the mouseDoubleUp message and ignore it.
2. Disable the button in the next card on preOpenCard, then set up a
pendingMessage to re-enable it after a few seconds.

Method 1 depends on the speed of the double-click so may not be 100%
reliable, but I use method 2 a lot.

Cheers,
Sarah



More information about the use-livecode mailing list