Hey,
i’m using Capacitor with SvelteKit and TailwindCSS.
My problem is that the bounce-scrolling or overscrolling effect is applied to my header and bottom navigation bar. Here is a small screen recording of this issue: https://www.youtube.com/shorts/gfWTLhV2FpQ
The header and bottom nav have a “position: fixed” property.
So i kinda managed to fix it.
Setting the overscroll-behavior to none or contain on the body fixes the issue on mobile chrome or firefox. However when building to native the bouncing still happened. So instead of having the scrollbar on the body i moved the scrollbar to a div and added the overscroll-behaviour: contain property there. This is the commit that fixes it: Disabled overscrolling effect completely · Fabianofski/Cooking-Cache@a94d040 · GitHub.
Unfortunately the bounce effect is now disabled completely. I haven’t found a way yet to disable it for the header and bottom nav only.