# Elastic scrolling on ipad causes header to unstick from top of window

**URL:** <https://meta.discourse.org/t/elastic-scrolling-on-ipad-causes-header-to-unstick-from-top-of-window/33481>\
**Category:** UX\
**Tags:** tablet\
**Created:** [Setembro 19, 2015, 8:43pm UTC](https://meta.discourse.org/t/elastic-scrolling-on-ipad-causes-header-to-unstick-from-top-of-window/33481 "2015-09-19T20:43:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [Setembro 21, 2015, 3:15am UTC](https://meta.discourse.org/t/elastic-scrolling-on-ipad-causes-header-to-unstick-from-top-of-window/33481/5 "2015-09-21T03:15:00Z")

</div>

This PR, or something similar, is a partial fix.  
[https://github.com/discourse/discourse/pull/3795](https://github.com/discourse/discourse/pull/3795)

I am fairly certain that for forums that are not using a custom header it is safe to set  
`.d-header{position: fixed;}` as both a desktop and a mobile customization. That will keep the header fixed to the top of the screen on ios devices.

For forums that do have a custom header, one possible workaround, combined with this PR, is to set the forum’s body background color to match the custom header’s background for small screens.

 ![](https://global.discourse-cdn.com/meta/original/3X/2/0/20bc203af39e554a89ca6f15dcf816b7dd144cd1.gif)

---

_[View the full topic](https://meta.discourse.org/t/elastic-scrolling-on-ipad-causes-header-to-unstick-from-top-of-window/33481)._
