Funky thing with mouse cursor

Sometimes, and I don’t know exactly what triggers it, the place where I put the mouse cursor for say copying text or checking spelling or looking up a word activated several inches to the left of the cursor.