Permalink
Browse files

update build

  • Loading branch information...
1 parent 20435ff commit 88dac5d77c2780930dff4546d08d3bc873471c1f @mourner mourner committed Oct 25, 2012
Showing with 6 additions and 11 deletions.
  1. +5 −10 dist/leaflet-src.js
  2. +1 −1 dist/leaflet.js
View
@@ -21,7 +21,7 @@ if (typeof exports !== undefined + '') {
window.L = L;
}
-L.version = '0.4.4';
+L.version = '0.4.5';
/*
@@ -788,11 +788,11 @@ L.DomUtil = {
},
getScaleString: function (scale, origin) {
- var preTranslateStr = L.DomUtil.getTranslateString(origin),
- scaleStr = ' scale(' + scale + ') ',
- postTranslateStr = L.DomUtil.getTranslateString(origin.multiplyBy(-1));
- return preTranslateStr + scaleStr + postTranslateStr;
+ var preTranslateStr = L.DomUtil.getTranslateString(origin.add(origin.multiplyBy(-1 * scale))),
+ scaleStr = ' scale(' + scale + ') ';
+
+ return preTranslateStr + scaleStr;
},
setPosition: function (el, point, disable3D) {
@@ -7439,11 +7439,6 @@ L.Map.include(!L.DomUtil.TRANSITION ? {} : {
clearTimeout(this._clearTileBgTimer);
- //dumb FireFox hack, I have no idea why this magic zero translate fixes the scale transition problem
- if (L.Browser.gecko || window.opera) {
- tileBg.style[transform] += ' translate(0,0)';
- }
-
L.Util.falseFn(tileBg.offsetWidth); //hack to make sure transform is updated before running animation
var scaleStr = L.DomUtil.getScaleString(scale, origin),
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 88dac5d

Please sign in to comment.