proper rounding of max bounds offsets
This commit is contained in:
parent
80607c6044
commit
507e6c7aa5
@ -789,7 +789,9 @@ L.Map = L.Class.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_rebound: function (left, right) {
|
_rebound: function (left, right) {
|
||||||
return Math.round(left + right > 0 ? (left - right) / 2 : Math.max(0, left) - Math.max(0, right));
|
return left + right > 0 ?
|
||||||
|
Math.round(left - right) / 2 :
|
||||||
|
Math.max(0, Math.ceil(left)) - Math.max(0, Math.floor(right));
|
||||||
},
|
},
|
||||||
|
|
||||||
_limitZoom: function (zoom) {
|
_limitZoom: function (zoom) {
|
||||||
|
Loading…
Reference in New Issue
Block a user