Mouse moving map switch off

i find it annoying when i move my mouse to the screen edge it moves the camera. is there a way for me to switch this off so i can just use mouse wheel click to move the camera about the map.