@widelab-nc/widelab 1.1.2 → 1.1.3

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": "@widelab-nc/widelab",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Widelab starter template based on Finsweet template + add-ons.",
5
5
  "homepage": "https://widelab.co",
6
6
  "license": "ISC",
package/src/index.js CHANGED
@@ -956,11 +956,13 @@ function customGsapEasing() {
956
956
  }
957
957
 
958
958
  // Update the scroll trigger on page load
959
- function updateScrollTrigger() {
960
- //ScrollTrigger.update();
961
- console.log('ScrollTrigger updated');
959
+ window.updateScrollTrigger = function() {
960
+ window.onload = function() {
961
+ ScrollTrigger.update();
962
+ };
962
963
  }
963
964
 
965
+
964
966
  // !!!!!!!!! Keep this Alpine init at the end !!!!!!!!!
965
967
  window.Webflow ||= [];
966
968
  window.Webflow.push(() => {
@@ -984,6 +986,5 @@ function updateScrollTrigger() {
984
986
  if (window.innerWidth < 992) {
985
987
  disableScrollMenu();
986
988
  }
987
- updateScrollTrigger();
988
989
 
989
990
  });