Stretched sections bug on iOS
-
Stretched full-width Sections are jumping off to the side when I scroll on my iOS device (Safari and Chrome on iPhone 6). I haven’t yet confirmed whether this is a problem on more devices or browsers. Here’s a screencast of the dev tools via BrowserStack to better illustrate what’s happening:
I’m using stretched sections for some hero content scattered through the page; notably, the “Come grow with…” and “it’s what’s inside…” parts that are seen in the recording. I observed these sections jumping off to the right whenever I scrolled on my mobile device. When pushing the page upward (“scrolling down”), the browser interface minimizes the URL bar at the top, and that causes the content to jump, for reasons I can’t identify. When pushing the page downward (“scrolling up”) at sufficient speed to cause the URL bar to expand again, the content returns to its intended position. I was unable to replicate this with desktop Chrome’s built-in device imitation, probably because it doesn’t have same the URL UI my actual mobile device has, but I could see it when using BrowserStack. The recording has some lag here and there, but it shows how the margin-left jumps from negative values to zero and back again when scrolling up and down.
Is there a way to corral the margins regardless of what the native UI is doing?
- The topic ‘Stretched sections bug on iOS’ is closed to new replies.