fix infinite loop in getBounds and setMaxBounds, close #1895, close #1866
fix map scrolling right on click with horizontal scroll on page, close #1901