Change autoscrolling behavior if mouse pointer is outside the map