Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to block tap/touch events for a period of time (during animations etc)?

$
0
0

@torger wrote:

I'm almost finished with my fairly big app, and now I'm testing it. In one part of the GUI it swaps between screens/views with a cool zooming animation when tapping a button. The app runs a bit slow on slow phones, but is perfectly usable. However when monkey-testing (tapping aggressively and fast) on slower phones I get issues with that taps get registered on the next screen before animation is complete and the layout can break in mysterious ways. This never happens on faster phones/devices or if I sit nicely and wait for the app to complete its animations.

A simple work-around would be to block all tap/touch events for a period of time. Is that possible to do?

I mean something like
blockEvents();
setTimeout(unblockEvents, 400);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>