Page 1 of 1

mouseUp vs mouseDown

Posted: Tue Jun 26, 2012 10:34 pm
by townsend
I made an interesting discovery today.
I've got a lot buttons that perform operations on various Scrolling Fields.
Some buttons perform multiple operations on two or more fields.
I've noticed for a while now, LiveCode seem to be very slow in these operations.
Now I understand why. The lag was the amount of time I was holding down clicks.
It's just a split second really, but it's very visible as these events happen on the screen.

So now I've changed all my Buttons to mouseDown handlers instead of mouseUp.
And wow-- visually there is a big difference. Just thought I'd pass that along.

Re: mouseUp vs mouseDown

Posted: Tue Jun 26, 2012 10:48 pm
by dunbarx
The issue is usually the interface guideiines. Users are accustomed to having an action initiated on mouseUp, as a rule. Some objects, like the various pulldown/combo box/popup buttons work on mouseDown, and this, too, is the expected behavior. It sounds like a trivial thing, but be careful that you do not confuse anyone. The flexibility is there, of course, and there are occasions where both are used in the same script.

Craig Newman

Re: mouseUp vs mouseDown

Posted: Wed Jun 27, 2012 12:00 am
by townsend
Good to know-- this may not be such a good idea with mobile apps.

Thanks Craig--