bccu#1656: Scroll when you are at the bottom of the screen

Change-Id: Id78ee3ad75bc2f1f3781c3e8ede9d4262e46a0f9
This commit is contained in:
Pranav Kant 2016-04-20 20:27:57 +05:30
parent 616cb5f451
commit 769c0591ed

View file

@ -853,7 +853,7 @@ L.TileLayer = L.GridLayer.extend({
this._map.latLngToLayerPoint(this._visibleCursor.getNorthEast()));
var cursorPos = this._visibleCursor.getNorthWest();
if (!e && !this._map.getBounds().contains(cursorPos) && this._isCursorVisible) {
if (!e && !this._map.getBounds().contains(this._visibleCursor) && this._isCursorVisible) {
var center = this._map.project(cursorPos);
center = center.subtract(this._map.getSize().divideBy(2));
center.x = Math.round(center.x < 0 ? 0 : center.x);