Mouse moving and clicking on its own

I have this bug where my mouse just keeps clicking on certain spots like on my tanks, sometimes randomly clicking on the researchable vehicle and activating it, clicking on the ready/to battle making me join or unready myself, and much more. Is this a bug or something? it doesn’t only happen in the in-game menu but also when I’m deploying myself. Is there a way to fix this?