The game is the one mistaking it, all happens with single finger movement.

One second it is going forward, sundenly the next second zooms in.

Well perhaps you are experiencing a bug since mine only does that when there is an obstacle in the way of the camera.