Skip to content

Safari on IOS 15 has a new 'feature'. It hides address bar when you swipe down, and when you swipe up it shows it again. In this repo you can find my dirty workaround, which is solving this issue.

Notifications You must be signed in to change notification settings

andriibarvynko/ios15_scroll_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scroll on iOS 15

Safari on IOS 15 has a new 'feature'. It hides address bar when you swipe down, and when you swipe up it shows it again. In this repo you can find my dirty workaround, which is solving this issue.

Go and test it!

Personally I've tested this on iPhone 11 Pro and iPhone 8+, iOS 15.1

How it works:

You need to use viewport meta and the following structure:

<head>
    <meta name="viewport" content="width=device-width, height=device-height"/>
</head>
<body>
    <div class="outer-content">
        <div id="content">
            <!-- Scrollable content here -->
        </div>
    </div>
</body>

And the following css for the outer container:

.outer-content {
    height: 100vh;
    position:fixed;
    overflow-y:scroll;
}

How it looks like:

preview

Useful links

Reed the discussion on stackoverflow

About

Safari on IOS 15 has a new 'feature'. It hides address bar when you swipe down, and when you swipe up it shows it again. In this repo you can find my dirty workaround, which is solving this issue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published