Pause animation while mouse is pressed