First time posting here so forgive me if I'm doing something wrong!
We're experiencing the exact same issue and we made the exact same measurement of @JoeH with basically the same results:
Nop
Yup, it gets the correct height: 11112 (when scroolsmoother is in action it's missing about 2000px: 9779)
Yup
Setting normalizeScroll either true or false doesn't change the end result, same with ignoreMobileResize.
Unfortunately setting smoothTouch to 0.1 or less isn't working for us.
This is how we create our ScrollSmoother instance:
useEffect(() => {
const smoothOperator = ScrollSmoother.create({
smooth: 4,
effects: true,
wrapper: '#___gatsby',
smoothTouch: 0.1,
});
smoothOperator.refresh(); // we tried both refreshing as soon as it mount the page and not refreshing at all
console.debug('Starting ScrollSmoother');
return () => {
console.debug('Killing ScrollSmoother');
smoothOperator.kill();
};
}, []);
We're working on a reprod on codepen but i'm still not able to replicate this behaviour.