Computers — Windows
A pointer that creeps, trembles or jumps while your hand is off the mouse is almost never a hacker and almost never a broken computer. It is usually something small and physical. Work down this list — most people stop at step one or two.
Turn the mouse over. The little window underneath (the sensor) collects dust and, famously, one single hair can make the pointer dance. Blow it clear or wipe it with a dry cloth. Do the same for a laptop’s touchpad — a greasy or damp touchpad reads touches that are not there.
Optical mice misread shiny, glass or patterned surfaces. Try a plain mouse mat, a sheet of paper, or a matte tabletop and see if the wandering stops.
While you type, the heels of your hands can brush the touchpad and nudge the pointer. Windows can switch the touchpad off whenever a mouse is plugged in: Settings → Bluetooth & devices → Touchpad, and untick Leave touchpad on when a mouse is connected. On a Mac: System Settings → Accessibility → Pointer Control, and tick Ignore built-in trackpad when mouse is present.
A forgotten wireless mouse in a drawer or laptop bag — switched on, being jostled — will drive the pointer from across the room. So can a second USB receiver left plugged in. Check what is in the USB sockets.
Plug in any ordinary wired mouse (borrow one for five minutes). If the pointer behaves perfectly with it, your original mouse is simply wearing out — mice are cheap, and this is the honest fix. If the wandering continues with two different mice, restart the computer and let it finish its updates; a pointer problem that survives that deserves a call.
Related but different: a pointer that freezes is this tip, and one that has vanished completely is this one.