It looks like a z-index error, try adding z-index: 1.
In this, I found a better way to debug:
Create a simple element at the top of the page, for example
<style>#test {position: fixed; background: red; top: 0; left: 0; width: 4em}</style> <div id="test">Test</div>
In all of the above cases, this works correctly, and the scroll is smooth. So this proves that it can be done! Now slowly add your properties back until you can get an item with a fixed position to work in the context of your site.
Then I found that adding a z-index to the fixed elements resolved the issue. (e.g. z-index: 1)
I also found that after the position is set on the child, the error presents it itself from this point down / forward. Thus, you need to make sure that none of the children has a given position, or if they do, you explicitly set the position for each child.
eg.
<div style="position: fixed;"> <div>Nice</div> <div>Wicked</div> <div>Cool</div> </div> <div style="position: fixed;"> <div style="position: relative;">sad</div> <div>sad</div> <div style="position: fixed;">happy</div> </div>
This is a fix, but will require some configuration!
uniquelau Apr 28 '14 at 11:32 2014-04-28 11:32
source share