6 ms·
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. Am
by Medicineguy 5y ago
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.
Am I the only one?
- n8ta 5y agoYou are not the only one. Site is rough.
- EvRev 5y agoIt 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.
- ComputerGuru 5y agoBut 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.