code: function checkScroll() {
              if (window.pageXOffset != scroll.left) {
                  scroll.top = window.pageYOffset;
                  scroll.left = window.pageXOffset;
      
                  Stickyfill.refreshAll();
              } else if (window.pageYOffset != scroll.top) {
                  scroll.top = window.pageYOffset;
                  scroll.left = window.pageXOffset;
      
                  // recalc position for all stickies
                  stickies.forEach(function (sticky) {
                      return sticky._recalcPosition();
                  });
              }
          }
docs: Watch for scroll position changes and trigger recalc/refresh if needed