@glitchr/transparent 1.0.63 → 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 +1 -1
- package/src/js/transparent.js +2 -1
package/package.json
CHANGED
package/src/js/transparent.js
CHANGED
|
@@ -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);
|