An outdated or corrupted device driver can cause such issues. You need to update or reinstall the mouse driver. To do this, from the Win X Menu, open Devices Manager. Locate Mice and other pointing devices and then right-click on your mouse driver to open its Properties.