@glitchr/transparent 1.0.59 → 1.0.60

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glitchr/transparent",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "Transparent SPA Application",
5
5
  "main": "src/index.js",
6
6
  "access": "public",
@@ -1,3 +1,5 @@
1
+ import $ from 'jquery';
2
+
1
3
  // Modern browser: use passive event listeners where appropriate for better performance
2
4
  jQuery.event.special.touchstart = { setup: function( _, ns, handle ) { this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") }); } };
3
5
  jQuery.event.special.touchmove = { setup: function( _, ns, handle ) { this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") }); } };
@@ -12,6 +14,7 @@ jQuery.event.special.mousewheel = { setup: function( _, ns, handle ) { this.addE
12
14
  } else if (typeof exports === 'object') {
13
15
  module.exports = factory();
14
16
  } else {
17
+ root = window;
15
18
  root.Transparent = factory();
16
19
  }
17
20