Close the frontend only when the movement is bigger than a defined threshold
issue