idiotikmethods 0.1.4 → 0.1.5

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/IdiotikMethods.js CHANGED
@@ -136,8 +136,8 @@
136
136
  },
137
137
  {
138
138
  key: "wavesurfer",
139
- url: "https://cdnjs.cloudflare.com/ajax/libs/wavesurfer.js/7.8.2/wavesurfer.js",
140
- fallback: "https://unpkg.com/wavesurfer.js@7.8.2/dist/wavesurfer.js",
139
+ url: "https://unpkg.com/wavesurfer.js@7.8.2/dist/wavesurfer.min.js",
140
+ fallback: "https://cdn.jsdelivr.net/npm/wavesurfer.js@7.8.2/dist/wavesurfer.min.js",
141
141
  init: () => _register("wavesurfer", root.WaveSurfer),
142
142
  },
143
143
 
@@ -520,13 +520,13 @@
520
520
  let mc;
521
521
  try {
522
522
  mc = new H.Manager(target);
523
- mc.add(new H.Tap());
524
- mc.add(new H.DoubleTap());
525
- mc.add(new H.Press());
526
- mc.add(new H.Pan({ direction: H.DIRECTION_ALL }));
527
- mc.add(new H.Swipe({ direction: H.DIRECTION_ALL }));
528
- mc.add(new H.Pinch());
529
- mc.add(new H.Rotate());
523
+ if (typeof H.Tap === "function") mc.add(new H.Tap());
524
+ if (typeof H.DoubleTap === "function") mc.add(new H.DoubleTap());
525
+ if (typeof H.Press === "function") mc.add(new H.Press());
526
+ if (typeof H.Pan === "function") mc.add(new H.Pan({ direction: H.DIRECTION_ALL }));
527
+ if (typeof H.Swipe === "function") mc.add(new H.Swipe({ direction: H.DIRECTION_ALL }));
528
+ if (typeof H.Pinch === "function") mc.add(new H.Pinch());
529
+ if (typeof H.Rotate === "function") mc.add(new H.Rotate());
530
530
  } catch (e) {
531
531
  // if Manager itself throws (e.g. stripped build), just register the global
532
532
  console.warn("[IdiotikMethods] Hammer.Manager init failed, registering global only:", e.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idiotikmethods",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main": "IdiotikMethods.js",
5
5
  "files": [
6
6
  "IdiotikMethods.js",