Unscrew the bottom plate of your mouse, remove the ball (if applicable), and set it on top of an air conditioner or fan until it dries up. Once dry, if it still messes up, you're toast.