Mouse drifting is a phenomenon in which your cursor starts moving by itself even when the mouse is still. It can be caused by faulty hardware so, try cleaning your mouse, and if it is wired, try re-plugging it after proper cleaning. Moreover, keep your drivers up to date to avoid such inconvenience.