update build and changelog

This commit is contained in:
Vladimir Agafonkin 2013-06-27 19:36:29 -04:00
parent 859c62f0e7
commit 69f51f22f3
3 changed files with 12 additions and 21 deletions

View File

@ -7,6 +7,9 @@ Leaflet Changelog
An in-progress version being developed on the master branch. No changes since latest stable release. An in-progress version being developed on the master branch. No changes since latest stable release.
* Fixed a regression with a wrong cursor when dragging a map with vector layers, and tiles becoming selected on double click (by [@jfirebaugh](https://github.com/jfirebaugh)). [#1800](https://github.com/Leaflet/Leaflet/issues/1800)
* Fixed a regression that caused flickering of tiles near map border on zoom animation in Chrome.
## 0.6.1 (June 27, 2013) ## 0.6.1 (June 27, 2013)
* Fixed a regression with mouse wheel zooming too fast on Firefox (by [@jfirebaugh](https://github.com/jfirebaugh)). [#1788](https://github.com/Leaflet/Leaflet/issues/1788) * Fixed a regression with mouse wheel zooming too fast on Firefox (by [@jfirebaugh](https://github.com/jfirebaugh)). [#1788](https://github.com/Leaflet/Leaflet/issues/1788)

26
dist/leaflet-src.js vendored
View File

@ -6460,6 +6460,7 @@ L.Draggable = L.Class.extend({
if (L.Draggable._disabled) { return; } if (L.Draggable._disabled) { return; }
L.DomUtil.disableImageDrag(); L.DomUtil.disableImageDrag();
L.DomUtil.disableTextSelection();
var first = e.touches ? e.touches[0] : e, var first = e.touches ? e.touches[0] : e,
el = first.target; el = first.target;
@ -6499,7 +6500,6 @@ L.Draggable = L.Class.extend({
this._startPos = L.DomUtil.getPosition(this._element).subtract(offset); this._startPos = L.DomUtil.getPosition(this._element).subtract(offset);
if (!L.Browser.touch) { if (!L.Browser.touch) {
L.DomUtil.disableTextSelection();
L.DomUtil.addClass(document.body, 'leaflet-dragging'); L.DomUtil.addClass(document.body, 'leaflet-dragging');
} }
} }
@ -6519,7 +6519,6 @@ L.Draggable = L.Class.extend({
_onUp: function () { _onUp: function () {
if (!L.Browser.touch) { if (!L.Browser.touch) {
L.DomUtil.enableTextSelection();
L.DomUtil.removeClass(document.body, 'leaflet-dragging'); L.DomUtil.removeClass(document.body, 'leaflet-dragging');
} }
@ -6530,6 +6529,7 @@ L.Draggable = L.Class.extend({
} }
L.DomUtil.enableImageDrag(); L.DomUtil.enableImageDrag();
L.DomUtil.enableTextSelection();
if (this._moved) { if (this._moved) {
// ensure drag is not fired after dragend // ensure drag is not fired after dragend
@ -8664,28 +8664,13 @@ L.Map.include(!L.DomUtil.TRANSITION ? {} : {
L.TileLayer.include({ L.TileLayer.include({
_animateZoom: function (e) { _animateZoom: function (e) {
var firstFrame = false;
if (!this._animating) { if (!this._animating) {
this._animating = true; this._animating = true;
firstFrame = true;
}
if (firstFrame) {
this._prepareBgBuffer(); this._prepareBgBuffer();
} }
var bg = this._bgBuffer; var bg = this._bgBuffer,
transform = L.DomUtil.TRANSFORM,
if (firstFrame) {
//prevent bg buffer from clearing right after zoom
clearTimeout(this._clearBgBufferTimer);
// hack to make sure transform is updated before running animation
L.Util.falseFn(bg.offsetWidth);
}
var transform = L.DomUtil.TRANSFORM,
initialTransform = e.delta ? L.DomUtil.getTranslateString(e.delta) : bg.style[transform], initialTransform = e.delta ? L.DomUtil.getTranslateString(e.delta) : bg.style[transform],
scaleStr = L.DomUtil.getScaleString(e.scale, e.origin); scaleStr = L.DomUtil.getScaleString(e.scale, e.origin);
@ -8745,6 +8730,9 @@ L.TileLayer.include({
bg = this._bgBuffer = front; bg = this._bgBuffer = front;
this._stopLoadingImages(bg); this._stopLoadingImages(bg);
//prevent bg buffer from clearing right after zoom
clearTimeout(this._clearBgBufferTimer);
}, },
_getLoadedTilesPercentage: function (container) { _getLoadedTilesPercentage: function (container) {

4
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long