Fix strange behaviour when the player clicks and drags outside the play area