pause animation while mouse is pressed