@widelab-nc/widelab 1.0.25 → 1.0.27
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 +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -957,9 +957,8 @@ function customGsapEasing() {
|
|
|
957
957
|
|
|
958
958
|
// Update the scroll trigger on page load
|
|
959
959
|
window.updateScrollTrigger = function() {
|
|
960
|
-
window.onload = function() {
|
|
961
960
|
ScrollTrigger.update();
|
|
962
|
-
|
|
961
|
+
console.log('ScrollTrigger updated');
|
|
963
962
|
}
|
|
964
963
|
|
|
965
964
|
|
|
@@ -986,5 +985,6 @@ window.updateScrollTrigger = function() {
|
|
|
986
985
|
if (window.innerWidth < 992) {
|
|
987
986
|
disableScrollMenu();
|
|
988
987
|
}
|
|
988
|
+
updateScrollTrigger();
|
|
989
989
|
|
|
990
990
|
});
|