Some optical mice work better than others.
I have a rectangular wireless Logitech mouse that I occasionally use
with a laptop.
It was intended for use with presentations, and besides the usual top
buttons, has more rubberized ones on the underside, so that you can use
it much as a remote control. Every once in awhile, the feet start
dragging, until you wipe them off.
The Logitech M570 trackball has less trouble with crud than the MS
trackballs did. Part of the secret is with the three tiny supporting
"bearing" balls. The MS ones were steel, got stuck, and developed flat
spots. Still, the trackball can get sticky, and need cleaning.