Hi everyone. I don't write english very well so sorry for that.
To avoid hide / show address bar in mobile safari I use this in css:
body, html {
height: 100vh;
width: 100vw;
overflow: hidden;
}
#viewport {
height: 100vh;
width: 100vw;
position: fixed;
overflow-x: hidden;
overflow-y: scroll;
}
It solves a lot of problems. For example:
vh units (when adding 100vh),
pinned blocks,
don't need to use ignoreMobileResize,
the page does not jump, itc.
The page has totaly fixed position!
But I use ScrollSmoother, and I can't use body anymore. ScrollSmoother is calculating height and adding to the body.
Maybe, can I tell ScrollSmoother to do his work not with body tag?
Or can I fix this another way?
p.s I didn't add codepen example as it won't show the problem