This feature has been around for a long time.
The same will happen if you create one button with two frames of animation. And when you press it, you will switch the frame number. If you don't add a delay it won't work well.
As I understood the processing of the touch takes some time and during this time several conditions have time to work.