Disabling mouse gestures works fine for me. Holding down the right mouse button and dragging left/right no longer goes back and forward in history.
If you're accidentally holding down the right mouse button and clicking the left, that will cause you to go back if you have the "Rocker Gestures" setting enabled. So, make sure that's off too.
Besides that, I'd check your mouse settings to see if your mouse supports any gestures itself.