I'm just getting familiar with working with binding. I have this file here: https://gist.github.com/JelaniThompson/74d062c5a28a18b75ca91cd44cd04d56
Does anyone know why y constantly returns 0 as opposed to the actual scroll position? I feel like this is more of a CSS issue than a Svelte issue but I could be mistaken.
When I did window.addEventListener instead, no events were being fired even on scroll with this HTML structure