@glitchr/transparent 1.0.64 → 1.0.65

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.64",
3
+ "version": "1.0.65",
4
4
  "description": "Transparent SPA Application",
5
5
  "main": "src/index.js",
6
6
  "access": "public",
@@ -989,7 +989,8 @@ jQuery.event.special.mousewheel = { setup: function( _, ns, handle ) { this.addE
989
989
  var durationY = 1000*Transparent.parseDuration(dict["duration-y"] ?? dict["duration"] ?? 0);
990
990
 
991
991
  if(speed) {
992
-
992
+ var distanceX = 0, distanceY = 0;
993
+
993
994
  var currentScrollX = $(el)[0].scrollLeft;
994
995
  if(currentScrollX < scrollLeft || scrollLeft == 0) // Going to the right
995
996
  distanceX = Math.abs(scrollLeft - currentScrollX);