Welcome to the forum Rise. Any chance you can share the sketch that you made in Web Editor with us? If it’s too big or it contains personal information, I suggest making an MCVE and share that instead.
Have you tested this sketch on your mobile and does it refresh when you swipe down? I’ve tried it with several devices and different browsers, but none of them refresh the web page or canvas when I swipe down- or upwards.
Seeing I can’t experience the problem it’s harder for me to help you, but perhaps some pointers might help you get closer to a solution:
I notice your sketch lacks semicolons. Don’t forget to add one of these bad boys after each line of code.
Have you checked the browser-compatibility for overscroll-behaviour-y? Perhaps you’re testing with a browser that’s not compatible with it.
Have you tried adding ‘overscroll-behavior-y: contain;’ to canvas instead of html, body?
I didn’t, but I’m running Chrome v76 on Android 9 (I don’t think this is the problem).
I did, still refreshing.
I don’t understand how it’s not refreshing on your devices/browsers. I’ve tried it on my mobile in both Brave & Chrome browsers - refreshes both times… I’ve tried to attach 2 screenshots.
Managed to get my hands on a tablet with Chrome, and had the same refresh issue. Do you know if the problem only happens in Chrome with mobile/tablet devices? (I have a laptop with touch screen and it’s not refreshing there)
Secondly, have you considered using touch-action: none for your sketch?