Computers — Mac & Chromebook
Your Mac mouse works, then vanishes — the pointer freezes, or moves in jumps — then comes back a minute later. A mouse that keeps disconnecting is almost never a broken Mac. It is usually a tired battery, something interfering with the wireless signal, or a pairing the Mac has half-forgotten. Work through these in order.
A mouse with a low battery disconnects long before it dies completely. For an Apple Magic Mouse: plug its charging cable in for 10 minutes (the port is underneath, so the mouse rests on its side while charging — that is normal). For a mouse with replaceable batteries (Logitech and most others): put in a fresh pair, even if the old ones "still work in the remote." Then test for an hour before trying anything clever.
Bluetooth reaches about 30 feet on paper and far less through desks and metal. Try the mouse right beside the Mac. Move USB hubs, external drives, and their cables a foot or two away from the Mac — USB 3 hubs are famous for crowding out Bluetooth. A metal desk or a Mac mini tucked behind a monitor can also weaken the link; raising the Mac or moving it forward a few inches sometimes ends the problem for good.
Use the Mac with its trackpad (or a borrowed mouse) for a while. If a second mouse also disconnects, the Mac's Bluetooth itself needs a look — restart the Mac once, and make sure macOS is up to date (System Settings → General → Software Update). If only your mouse disconnects — and especially if it also drops on another computer — the mouse itself is failing. Mice are inexpensive, and a worn-out one is not worth fighting.
One quirk to know: a Magic Mouse cannot be used while it is charging, so charge it during a coffee break, not mid-task. And if the disconnects only happen at one desk, in one room, suspect interference (step 2) over failure — the same mouse often behaves perfectly at a different desk.