My Drag Scroll on my mouse bugs out

I use drag scroll instead of mouse scroll as my camera movement. It’s bound to Mouse5 (my forward side mouse button).

Whenever I play multiplayer (this doesn’t happen in single player or Melee), sometimes it bugs out and I end up rubberbanding pretty much in the opposite direction of where I intended to drag to. This happens a few times every game in 1v1 Ladder. In 2v2 or Melee with friends, this happens around once every twenty seconds.

This is definitely not a mouse issue, because it works perfectly fine in other games and single player. I’ve tried uninstalling the game completely including my hotkey folder. I’ve tried deleting all of my saved hotkey configs. I’m tried unbinding everything aside from the default grid that I use (plus mouse drag). I’ve also tried binding other buttons to drag scroll.