@widelab-nc/widelab 1.0.26 → 1.0.28
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/index.js +4 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -956,11 +956,11 @@ function customGsapEasing() {
|
|
|
956
956
|
}
|
|
957
957
|
|
|
958
958
|
// Update the scroll trigger on page load
|
|
959
|
-
|
|
960
|
-
|
|
959
|
+
function updateScrollTrigger() {
|
|
960
|
+
ScrollTrigger.update();
|
|
961
|
+
console.log('ScrollTrigger updated');
|
|
961
962
|
}
|
|
962
963
|
|
|
963
|
-
|
|
964
964
|
// !!!!!!!!! Keep this Alpine init at the end !!!!!!!!!
|
|
965
965
|
window.Webflow ||= [];
|
|
966
966
|
window.Webflow.push(() => {
|
|
@@ -984,5 +984,6 @@ window.updateScrollTrigger = function() {
|
|
|
984
984
|
if (window.innerWidth < 992) {
|
|
985
985
|
disableScrollMenu();
|
|
986
986
|
}
|
|
987
|
+
updateScrollTrigger();
|
|
987
988
|
|
|
988
989
|
});
|