iticket-seatingplan-dev 1.8.0 → 1.8.1

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.
@@ -8,14 +8,10 @@ var _enums = require("./enums");
8
8
  const getIsTouchScreen = () => {
9
9
  let hasTouchScreen = false;
10
10
  if (typeof window !== "undefined") {
11
- if ("maxTouchPoints" in window.navigator || "msMaxTouchPoints" in window.navigator) {
12
- hasTouchScreen = window.navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0;
13
- } else {
14
- var _matchMedia;
15
- const mQ = (_matchMedia = matchMedia) === null || _matchMedia === void 0 ? void 0 : _matchMedia("(pointer: coarse)");
16
- if ((mQ === null || mQ === void 0 ? void 0 : mQ.media) === "(pointer: coarse)") {
17
- hasTouchScreen = !!mQ.matches;
18
- }
11
+ var _matchMedia;
12
+ const mQ = (_matchMedia = matchMedia) === null || _matchMedia === void 0 ? void 0 : _matchMedia("(hover: none)");
13
+ if ((mQ === null || mQ === void 0 ? void 0 : mQ.media) === "(hover: none)") {
14
+ hasTouchScreen = !!mQ.matches;
19
15
  }
20
16
  }
21
17
  return hasTouchScreen;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "iticket-seatingplan-dev",
3
3
  "description": "Seating plan with FLEXi pricing",
4
4
  "author": "gedwyne",
5
- "version": "1.8.0",
5
+ "version": "1.8.1",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",