I've been trying to use scroll-snap on my website, and it's working wonderfully on firefox, both desktop and mobile.
However, it's not working at all on chrome, either destop or mobile.
The issue is that I have a javascript script constantly changing a text box like this:
while(i<letters.length) {
await waitForMs(delay);
splash.innerHTML = splash.innerHTML + letters[i];
i++;
}
and whenever the text gets refreshed, the viewport does a little jerk and jumps back up to the text, even if the user is trying to scroll.
You can test the issue at the website at the website here.
There are multiple issues here, but I can see there would be different ways to solve it. The main issue is that the scroll snap is not working on chrome, but another issue is that the javascript is sort of refreshing the viewport? Which means the scroll snap cannot act.