How can I stop OS X from switching Spaces when the mouse cursor is at the edge of the screen?
I found a solution. The following sets the delay to 1 minute.

defaults write com.apple.dock workspaces-edge-delay -float 60 &amp;&amp; killall Dock

source: Leopard: Lower the window drag delay between spaces