I have a div .drawer
(cart drawer) that has a z-index lower than the main wrapper #PageContainer
of the website. So essentially is sits below. When a button is clicked the main wrapper moves to the left to reveal the div underneath.
Everything is fine except when viewing in Safari due to elastic scrolling if you scroll up past the top of the website you can see the div thats underneath. Every other browser seems to be fine so this issue is only due to the elastic scroll.
I need the div to be fixed and display:block; as I don't want it to disappear when the drawer closes. Any ideas how I can disable the elastic scroll for the site? Or if there is something I need to apply to my CSS?
Any help would be appreciated.
Here's my demo site
.drawer {
position: fixed;
display: block;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
top: 0;
bottom: 0;
padding: 0 ($gutter / 2) ($gutter / 2);
max-width: 95%;
z-index: 10;
}