[Pkg-javascript-commits] [leaflet] 267/301: Disable webkit3d on android 2/3 because it is buggy as. fixes #2198

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 66282f14bcb180ec87d9818d9f3c9f75afd01b30
Author: danzel <danzel at localhost.geek.nz>
Date:   Thu Nov 21 09:30:22 2013 +1300

    Disable webkit3d on android 2/3 because it is buggy as. fixes #2198
---
 src/core/Browser.js         | 2 +-
 src/dom/DomUtil.js          | 5 -----
 src/layer/tile/TileLayer.js | 4 +---
 3 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/core/Browser.js b/src/core/Browser.js
index 53908fc..7b0c8ad 100644
--- a/src/core/Browser.js
+++ b/src/core/Browser.js
@@ -27,7 +27,7 @@
 
 	    doc = document.documentElement,
 	    ie3d = ie && ('transition' in doc.style),
-	    webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()),
+	    webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()) && !android23,
 	    gecko3d = 'MozPerspective' in doc.style,
 	    opera3d = 'OTransition' in doc.style,
 	    any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d || opera3d) && !phantomjs;
diff --git a/src/dom/DomUtil.js b/src/dom/DomUtil.js
index f0bf761..d9c6bf2 100644
--- a/src/dom/DomUtil.js
+++ b/src/dom/DomUtil.js
@@ -213,11 +213,6 @@ L.DomUtil = {
 
 		if (!disable3D && L.Browser.any3d) {
 			el.style[L.DomUtil.TRANSFORM] =  L.DomUtil.getTranslateString(point);
-
-			// workaround for Android 2/3 stability (https://github.com/CloudMade/Leaflet/issues/69)
-			if (L.Browser.mobileWebkit3d) {
-				el.style.WebkitBackfaceVisibility = 'hidden';
-			}
 		} else {
 			el.style.left = point.x + 'px';
 			el.style.top = point.y + 'px';
diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index d8cb02e..fe44759 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -425,11 +425,9 @@ L.TileLayer = L.Class.extend({
 		/*
 		Chrome 20 layouts much faster with top/left (verify with timeline, frames)
 		Android 4 browser has display issues with top/left and requires transform instead
-		Android 2 browser requires top/left or tiles disappear on load or first drag
-		(reappear after zoom) https://github.com/CloudMade/Leaflet/issues/866
 		(other browsers don't currently care) - see debug/hacks/jitter.html for an example
 		*/
-		L.DomUtil.setPosition(tile, tilePos, L.Browser.chrome || L.Browser.android23);
+		L.DomUtil.setPosition(tile, tilePos, L.Browser.chrome);
 
 		this._tiles[tilePoint.x + ':' + tilePoint.y] = tile;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list