@cogic/annotorious 2.7.21 → 2.7.22

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogic/annotorious",
3
- "version": "2.7.21",
3
+ "version": "2.7.22",
4
4
  "description": "A JavaScript image annotation library",
5
5
  "main": "dist/annotorious.min.js",
6
6
  "scripts": {
package/src/util/Touch.js CHANGED
@@ -4,10 +4,10 @@ const SIM_EVENTS = {
4
4
  touchend: 'mouseup'
5
5
  }
6
6
 
7
+ const SUPPORT_TOUCH_DEVICE = false;
8
+
7
9
  export const isTouchDevice = () =>
8
- 'ontouchstart' in window ||
9
- navigator.maxTouchPoints > 0 ||
10
- navigator.msMaxTouchPoints > 0;
10
+ SUPPORT_TOUCH_DEVICE && ('ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
11
11
 
12
12
  export const enableTouchTranslation = el => {
13
13