@wemap/providers 3.1.22 → 3.1.23

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
@@ -13,7 +13,7 @@
13
13
  "@wemap/logger": "^3.0.0",
14
14
  "@wemap/maths": "^3.1.15",
15
15
  "@wemap/osm": "^3.1.21",
16
- "@wemap/utils": "^3.1.5",
16
+ "@wemap/utils": "^3.1.23",
17
17
  "geomagnetism": "^0.1.0",
18
18
  "lodash.isempty": "^4.4.0",
19
19
  "lodash.noop": "^3.0.1"
@@ -64,6 +64,6 @@
64
64
  "lint": "eslint --ext .js,.jsx --quiet src",
65
65
  "test": "mocha -r esm \"src/**/*.spec.js\""
66
66
  },
67
- "version": "3.1.22",
68
- "gitHead": "bea4fae93149e5fdce099a3c832b423569e9d0f0"
67
+ "version": "3.1.23",
68
+ "gitHead": "bc4842c87e22d3edd6a1c85088c20a40324698ed"
69
69
  }
@@ -78,6 +78,7 @@ class AbsoluteAttitudeFromBrowserProvider extends Provider {
78
78
  break;
79
79
 
80
80
  case Browser.SAFARI:
81
+ case Browser.IOS_WEBVIEW:
81
82
  window.addEventListener('deviceorientation',
82
83
  this.onDeviceOrientationSafariEvent, true);
83
84
  break;
@@ -123,6 +124,7 @@ class AbsoluteAttitudeFromBrowserProvider extends Provider {
123
124
  break;
124
125
 
125
126
  case Browser.SAFARI:
127
+ case Browser.IOS_WEBVIEW:
126
128
  window.removeEventListener('deviceorientation',
127
129
  this.onDeviceOrientationSafariEvent, true);
128
130
  break;
@@ -96,7 +96,8 @@ class ImuProvider extends Provider {
96
96
  if (typeof x === 'number' && typeof y === 'number' && typeof z === 'number') {
97
97
  acc = [x, y, z];
98
98
 
99
- if (BrowserUtils.name === Browser.SAFARI) {
99
+ if (BrowserUtils.name === Browser.SAFARI
100
+ || BrowserUtils.name === Browser.IOS_WEBVIEW) {
100
101
  acc[0] *= -1;
101
102
  acc[1] *= -1;
102
103
  acc[2] *= -1;