While scrolling, the web page shifts up a couple dozens of pixels (Android, Firefox) . It's very annoying. I had to stop reading after the second paragraph.
It is a bug when you use VH instead of VW on your height attribute. Always use VW on mobile because of the default behavior on mobile browsers to show the address bar when scrolling.
But that breaks a lot of design assumptions, since many times the use of vh vs vw is to avoid assuming which of the height or width is greater. You’d have to use a min/max calculation to avoid aspect ratio mayhem whn comparing landscape to portrait.
The real big is UI elements that randomly appear and disappear in the browser chrome, such as scroll bars and address bars, that contribute to vh/vw randomly spazzing.
EvRev|4 years ago
ComputerGuru|4 years ago
The real big is UI elements that randomly appear and disappear in the browser chrome, such as scroll bars and address bars, that contribute to vh/vw randomly spazzing.
n8ta|4 years ago