iticket-seatingplan-dev 1.7.9 → 1.8.0

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.
@@ -257,6 +257,12 @@ function SeatMap(_ref) {
257
257
  if (hideTooltipTimeoutRef.current) {
258
258
  clearTimeout(hideTooltipTimeoutRef.current);
259
259
  }
260
+ if (isTouchScreen) {
261
+ setMousePos({
262
+ x: e.containerPoint.x,
263
+ y: e.containerPoint.y
264
+ });
265
+ }
260
266
  if (s.loading) {
261
267
  return;
262
268
  }
@@ -442,13 +448,13 @@ function SeatMap(_ref) {
442
448
  mousedown: () => {
443
449
  onMouseDown(s, hasSeatPrices);
444
450
  },
445
- mouseout: onMouseOut,
446
- mousemove: onMouseMove
451
+ mouseout: onMouseOut
447
452
  };
448
453
  if (!isTouchScreen) {
449
454
  eventHandlers.mouseover = e => {
450
455
  onHover(e, s, hasSeatPrices);
451
456
  };
457
+ eventHandlers.mousemove = onMouseMove;
452
458
  }
453
459
  return /*#__PURE__*/_react.default.createElement("div", {
454
460
  key: i
@@ -8,12 +8,12 @@ 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) {
12
- hasTouchScreen = window.navigator.maxTouchPoints > 0;
11
+ if ("maxTouchPoints" in window.navigator || "msMaxTouchPoints" in window.navigator) {
12
+ hasTouchScreen = window.navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0;
13
13
  } else {
14
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)") {
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
17
  hasTouchScreen = !!mQ.matches;
18
18
  }
19
19
  }
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.7.9",
5
+ "version": "1.8.0",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",