Don't let the interface's map cursor go out of bounds.