@urso/core 0.7.85 → 0.7.86

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.86",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -447,6 +447,15 @@ class LibHelper {
447
447
  return check;
448
448
  }
449
449
 
450
+ /**
451
+ * check for Ipad OS
452
+ */
453
+ isIpadOS = () => {
454
+ return navigator.maxTouchPoints &&
455
+ navigator.maxTouchPoints > 2 &&
456
+ /MacIntel/.test(navigator.platform);
457
+ }
458
+
450
459
  /**
451
460
  * make objects property reactive
452
461
  * @param {Object} targetObject
@@ -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) {