Context: I am trying to solve an issue as mention here: https://github.com/likeastore/ngDialog/issues/94
Problem: Open plnkr: http://plnkr.co/edit/qKJiNwyivqJVCAtyhwYR?p=preview and try to hold and drag scrollbar with mouse. The scrollbar on the parent container is not usable with mouse. Incidentally, what is happening is that the position:fixed div.overlay is overlapping with the scrollbar of its parent container.
HTML:
<div class="container">
<div class="overlay"></div>
<div class="content">
<div>I'm large 1</div>
<div>I'm large</div>
<div>I'm large</div>
<div>I'm large</div>
<div>I'm large</div>
</div>
</div>
CSS
.container{
position: fixed;
overflow: auto;
z-index: 10000;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 160px;
}
.container .overlay{
position: fixed;
background: rgba(0, 0, 0, 0.4);
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.container .content{
background: #f0f0f0;
border-radius: 5px;
max-width: 100%;
position: relative;
}