What seems to be the recommended solution is to get some isopropanol and clean the ball from the outside. Roll it around to get the isopropanol into the socket. You may have to treat it rough to get all the dirt out. Because there are electronics in there, unplug the mouse before you do it, don't use too much isopropanol and let it dry off before you plug it in again.