DEV Community

Discussion on: The mistake developers make when coding a hamburger menu

Collapse
 
adrianhelvik profile image
Adrian • Edited

Apple should fix their scroll issues. iOS and scrolling is a nightmare to work with.

Collapse
 
nbeers22 profile image
Nate Beers

Safari in general is a nightmare, both on desktop and mobile

Collapse
 
adrianhelvik profile image
Adrian

So many obscure bugs.. It does have good js and css support though, so it's a double edged sword.

Safari: It just works! Until one day, the screen turns white for no apparent reason and you have to do something completely nonsensical to fix it.

Had to put in a crazy hack the other day as Safari doesn't calculate the scroll height correctly when images spend some time loading and the resulting scroll height is less than 100vh (100vh doesn't take the address bar into account). This hid some necessary navigation and rendered the app unusable in this very specific edge case.

To fix it I used a capturing load event listener and set position fixed before resetting the positioning. Nasty business.