Primarily, mouse drifting is a phenomenon in which the cursor of your mouse starts moving, even when the mouse is not working. In addition, faulty hardware causes the mouse to drift, so try to clean your mouse.