@urso/core 0.7.85 → 0.7.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.85",
3
+ "version": "0.7.87",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -444,7 +444,16 @@ class LibHelper {
444
444
  check = true;
445
445
  })(navigator.userAgent || navigator.vendor || window.opera);
446
446
 
447
- return check;
447
+ return check || Urso.helper.isIpadOS();
448
+ }
449
+
450
+ /**
451
+ * check for Ipad OS
452
+ */
453
+ isIpadOS = () => {
454
+ return navigator.maxTouchPoints &&
455
+ navigator.maxTouchPoints > 2 &&
456
+ /MacIntel/.test(navigator.platform);
448
457
  }
449
458
 
450
459
  /**
@@ -48,7 +48,7 @@ class ModulesObjectsModelsButton extends ModulesObjectsBaseModel {
48
48
  }
49
49
 
50
50
  _checkIsDesktop() {
51
- return Urso.device.desktop && !Urso.isIpadOS();
51
+ return Urso.device.desktop && !Urso.helper.isIpadOS();
52
52
  }
53
53
 
54
54
  setButtonFrame(key, assetKey) {