Go to card [with effects] is slow on Android
Scott Rossi
scott at tactilemedia.com
Sun Jan 26 02:42:16 EST 2014
Hi Roger:
One place to start might be the click. Why do you have a click occurring?
Is this to trigger code or display a hilite? Both of these can be done
through code without doing any kind of physical/manual click.
hilite btn "xyz"
wait 150 millisecs
unhilite of btn "xyz"
dispatch "mouseUp" to btn "xyz"
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On 1/25/14 8:38 PM, "Roger Eller" <roger.e.eller at sealedair.com> wrote:
> I know that "do" is a bad idea sometimes, but in this case, my swipe code
>is in the background image, and that's where the swipe direction is
>determined, then it clicks at the loc of myButton (to show the button is
>being pressed).
>
>The only problem is that it hesitates for about a second before playing
>the
>transition effect. What would be a more optimal way? I like the effects,
>but the lag is killing the experience!
>
>*global* gDirection
>
>*on* mouseUp
>
> *if* gDirection is not empty *then*
>
> *put* "visual effect push" && gDirection && "very fast"
>intotShowEffectCommand
>
> *do* tShowEffectCommand
>
> *end* *if*
>
> *go* card "card_three"
>
> *put* empty into gDirection
>
>*end* mouseUp
>
>~Roger
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list