@@ -1810,6 +1810,35 @@ function BufferBigIntNotDefined() {
1810
1810
1811
1811
/***/ }),
1812
1812
1813
+ /***/ 2321:
1814
+ /***/ (function(module) {
1815
+
1816
+ "use strict";
1817
+
1818
+
1819
+ module.exports = isMobile;
1820
+ module.exports.isMobile = isMobile;
1821
+ module.exports["default"] = isMobile;
1822
+ var mobileRE = /(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i;
1823
+ var notMobileRE = /CrOS/;
1824
+ var tabletRE = /android|ipad|playbook|silk/i;
1825
+ function isMobile(opts) {
1826
+ if (!opts) opts = {};
1827
+ var ua = opts.ua;
1828
+ if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent;
1829
+ if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {
1830
+ ua = ua.headers['user-agent'];
1831
+ }
1832
+ if (typeof ua !== 'string') return false;
1833
+ var result = mobileRE.test(ua) && !notMobileRE.test(ua) || !!opts.tablet && tabletRE.test(ua);
1834
+ if (!result && opts.tablet && opts.featureDetect && navigator && navigator.maxTouchPoints > 1 && ua.indexOf('Macintosh') !== -1 && ua.indexOf('Safari') !== -1) {
1835
+ result = true;
1836
+ }
1837
+ return result;
1838
+ }
1839
+
1840
+ /***/ }),
1841
+
1813
1842
/***/ 3910:
1814
1843
/***/ (function(__unused_webpack_module, exports) {
1815
1844
@@ -20314,7 +20343,7 @@ var mouseChange = __webpack_require__(6145)
20314
20343
var perspective = __webpack_require__(1120)
20315
20344
var ortho = __webpack_require__(5268)
20316
20345
var createShader = __webpack_require__(8245)
20317
- var isMobile = __webpack_require__(2861 )({ tablet: true, featureDetect: true })
20346
+ var isMobile = __webpack_require__(2321 )({ tablet: true, featureDetect: true })
20318
20347
20319
20348
module.exports = {
20320
20349
createScene: createScene,
@@ -30623,49 +30652,6 @@ function isSlowBuffer (obj) {
30623
30652
}
30624
30653
30625
30654
30626
- /***/ }),
30627
-
30628
- /***/ 2861:
30629
- /***/ (function(module) {
30630
-
30631
- "use strict";
30632
-
30633
-
30634
- module.exports = isMobile
30635
- module.exports.isMobile = isMobile
30636
- module.exports["default"] = isMobile
30637
-
30638
- var mobileRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i
30639
-
30640
- var tabletRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i
30641
-
30642
- function isMobile (opts) {
30643
- if (!opts) opts = {}
30644
- var ua = opts.ua
30645
- if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent
30646
- if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {
30647
- ua = ua.headers['user-agent']
30648
- }
30649
- if (typeof ua !== 'string') return false
30650
-
30651
- var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)
30652
-
30653
- if (
30654
- !result &&
30655
- opts.tablet &&
30656
- opts.featureDetect &&
30657
- navigator &&
30658
- navigator.maxTouchPoints > 1 &&
30659
- ua.indexOf('Macintosh') !== -1 &&
30660
- ua.indexOf('Safari') !== -1
30661
- ) {
30662
- result = true
30663
- }
30664
-
30665
- return result
30666
- }
30667
-
30668
-
30669
30655
/***/ }),
30670
30656
30671
30657
/***/ 3596:
0 commit comments