Did you ever clean your mouse? Or do you have the possibility to test a other mouse?
Like “who”, i do not think of malware or Joke Programm, more that it could be a hardware failure.