Used to happen to me all the time until I switched mice. It was an optical then I switched to a laser one which is a logitech G5 and not had the problem since. So if you cant sort it try replacing it since it might have a fault I know mine did tried everything to fix it until I decided to replace it.