Hmmmm.... that is.... fascinating...
Okay, there might be a reason for that. And that is your mouse pollrate. I'm not sure how exactly to fix it if that is the problem, so we'll have to work together on this one.
Try to use a different mouse for starters. That would eliminate at least one reason for this problem to occur.
Also, check if frame limit is enabled (set to 60). A very high framerate might also cause this problem.
Hey, I just got an idea on what might be happening. Try downloading MESA from here: https://fdossena.com/?p=mesa/index.frag
And then put the provided dll in a folder with a built game.
See if it helps
Yeah, so... there really is no good fix for that. The only problem I found that could be raleted is your mouse. You probably have one of those "high DPI-high polling rate-gaming mouse". Which is good for games but bad for development. Because the poll rate is so high it just clogs events stack. Anyway, I'll try to do something about it but so far the only way is to try changing your mouse to something with a sane number of DPI (like an office mouse) and poll rate and check if it helps.
There is another probable culprit and that is a gamepad. Or rather the lack of it. Try pluging in a gamepad if you have one.