To circumnavigate this, I moved the scroll binding from the svelte:window component to a vanilla event listener on the window. I also added a scroll prop so users can pass in a store bound to the scroll position and use that for the parallax effects.
When using the AppShell from SkeletonLabs UI library, the svelte:window element doesn't log the scrollY position due to a bug.
To circumnavigate this, I moved the scroll binding from the svelte:window component to a vanilla event listener on the window. I also added a
scroll
prop so users can pass in a store bound to the scroll position and use that for the parallax effects.