change translate3d detection

This commit is contained in:
Mstislav Zhivodkov 2015-04-06 18:00:44 +06:00
parent cac1494f64
commit 4b757fe2cd
2 changed files with 4 additions and 3 deletions

View File

@ -35,6 +35,7 @@
android23: android23,
chrome: chrome,
safari: !chrome && ua.indexOf('safari') !== -1,
opera12: opera3d,
ie3d: ie3d,
webkit3d: webkit3d,

View File

@ -141,7 +141,7 @@ L.DomUtil = {
setTransform: function (el, offset, scale) {
var pos = offset || new L.Point(0, 0),
is3d = L.Browser.webkit3d,
is3d = !L.Browser.opera12,
open = 'translate' + (is3d ? '3d' : '') + '(',
close = (is3d ? ',0' : '') + ')';