bccu#1656: Scroll when you are at the bottom of the screen
Change-Id: Id78ee3ad75bc2f1f3781c3e8ede9d4262e46a0f9
This commit is contained in:
parent
616cb5f451
commit
769c0591ed
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue