[Pkg-javascript-commits] [leaflet] 227/301: capital case for backface tile hack (just in case); add comment

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:53 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 edfa2acb70a0985c1899b6d038aa691cb30fff97
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Tue Nov 12 13:07:16 2013 +0200

    capital case for backface tile hack (just in case); add comment
---
 src/layer/tile/TileLayer.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index e6e02f2..467b89f 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -521,8 +521,10 @@ L.TileLayer = L.Class.extend({
 		if (L.Browser.ielt9 && this.options.opacity !== undefined) {
 			L.DomUtil.setOpacity(tile, this.options.opacity);
 		}
+		// without this hack, tiles disappear after zoom on Chrome for Android
+		// https://github.com/Leaflet/Leaflet/issues/2078
 		if (L.Browser.mobileWebkit3d) {
-			tile.style.webkitBackfaceVisibility = 'hidden';
+			tile.style.WebkitBackfaceVisibility = 'hidden';
 		}
 		return 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