Mouse bug moving by itself age of empire 2 de

Hello, I have a problem with a mouse that moves on its own (it scrolls on its own in one direction) it often happens to me, whereas before it didn’t. even if I don’t touch the mouse it does. I have a razer naga trinity and on the other games it doesn’t do it to me