Merge pull request #1501 from rassie/patch-1
Disable 3D CSS transforms on PhantomJS
This commit is contained in:
commit
b3179548cd
@ -13,6 +13,7 @@
|
|||||||
ua = navigator.userAgent.toLowerCase(),
|
ua = navigator.userAgent.toLowerCase(),
|
||||||
webkit = ua.indexOf('webkit') !== -1,
|
webkit = ua.indexOf('webkit') !== -1,
|
||||||
chrome = ua.indexOf('chrome') !== -1,
|
chrome = ua.indexOf('chrome') !== -1,
|
||||||
|
phantomjs = ua.indexOf('phantom') !== -1,
|
||||||
android = ua.indexOf('android') !== -1,
|
android = ua.indexOf('android') !== -1,
|
||||||
android23 = ua.search('android [23]') !== -1,
|
android23 = ua.search('android [23]') !== -1,
|
||||||
|
|
||||||
@ -28,7 +29,7 @@
|
|||||||
webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()),
|
webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()),
|
||||||
gecko3d = 'MozPerspective' in doc.style,
|
gecko3d = 'MozPerspective' in doc.style,
|
||||||
opera3d = 'OTransition' in doc.style,
|
opera3d = 'OTransition' in doc.style,
|
||||||
any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d || opera3d);
|
any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d || opera3d) && !phantomjs;
|
||||||
|
|
||||||
|
|
||||||
var touch = !window.L_NO_TOUCH && (function () {
|
var touch = !window.L_NO_TOUCH && (function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user