Stop scrolling at the edges of the map.