change translate3d detection
This commit is contained in:
parent
cac1494f64
commit
4b757fe2cd
@ -35,6 +35,7 @@
|
||||
android23: android23,
|
||||
chrome: chrome,
|
||||
safari: !chrome && ua.indexOf('safari') !== -1,
|
||||
opera12: opera3d,
|
||||
|
||||
ie3d: ie3d,
|
||||
webkit3d: webkit3d,
|
||||
|
@ -141,9 +141,9 @@ L.DomUtil = {
|
||||
|
||||
setTransform: function (el, offset, scale) {
|
||||
var pos = offset || new L.Point(0, 0),
|
||||
is3d = L.Browser.webkit3d,
|
||||
open = 'translate' + (is3d ? '3d' : '') + '(',
|
||||
close = (is3d ? ',0' : '') + ')';
|
||||
is3d = !L.Browser.opera12,
|
||||
open = 'translate' + (is3d ? '3d' : '') + '(',
|
||||
close = (is3d ? ',0' : '') + ')';
|
||||
|
||||
el.style[L.DomUtil.TRANSFORM] =
|
||||
open + pos.x + 'px,' + pos.y + 'px' + close + (scale ? ' scale(' + scale + ')' : '');
|
||||
|
Loading…
Reference in New Issue
Block a user