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