Classic case of seemingly trivial task turning out to be not so trivial to solve:
1) Ping immediately onTouchStart ...2) ... and every N seconds after (using Utils.interval) while the button is still being pressed.3) Reset Utils.interval to prevent "interference".
#ping #hold #reset #interval #UtilsInterval
Does anyone have a better, simpler solution to this problem?
I'm not sure what you mean the problem is. However I actually made the exact same thing today. Maybe It can help: http://framer.link/www.dropbox.com/s/hqiuocjcb0m23bj/Click_Circle_Animation-update.framer.zip
Here's a cleaner implementation of what you're trying to do: http://share.framerjs.com/8bla8dm0o9vh/
Thought it would be a good idea those interval functions into a basic class for easier handling:
* example: http://share.framerjs.com/tx2gu6yxut1k/* ping using intervalClass: http://share.framerjs.com/v9gh06kx4b98/