I have a mobile game in which there are invisible walls with a collider at the edge of the screens such that the game objects inside it can only be in the screen area and not outside of it. However, when I see my reviews it seems that the objects inside sometimes go outside of these walls because when you tap they may suddenly start moving fast and thus they may one frame be inside the walls and the next frame outside of them. (Mostly on slower devices)
The question is now: how should I handle this problem. Should I maybe make the movement slower or implement a function that checks whether it is still in the walls (seems not so elegant) or something else?