Re: Nested scrolling behavior

2015-01-21 Thread Paul Rouget
It has nothing to do with scrollgrab. Scrolling overflowing remote iframes doesn't work on osx + apzc. Paul Rouget wrote: > Apparently, the issue is when I use an iframe. > > My code: > > > > >hi > >http://paulrouget.com";> > > > > > > document.querySelector('#out').scrollgrab = true;

Re: Nested scrolling behavior

2015-01-21 Thread Paul Rouget
Apparently, the issue is when I use an iframe. My code: > >hi >http://paulrouget.com";> > > > document.querySelector('#out').scrollgrab = true; > > #out { > padding: 10px; > background-color: #6F0; > width: 200px; > height: 250px; > overflow: scroll; > } > > #in { > width

Re: Nested scrolling behavior

2015-01-21 Thread Paul Rouget
I managed to make my example work. So it must be a thing in my original code that doesn't play well with this. I'll investigate. Paul Rouget wrote: > I set scrollgrab on the container. > But now, I can't scroll anything. > > This is the layout: > > >// height: 50px; >// height: 100vh;

Re: Nested scrolling behavior

2015-01-21 Thread Paul Rouget
I set scrollgrab on the container. But now, I can't scroll anything. This is the layout: // height: 50px; // height: 100vh; So #scrollable overflows by 50px. We can't see the 50 last pixels of the iframe (expected). I set scrollable.scrollgrab = true. And now, I can't scroll anything. T

Re: Nested scrolling behavior

2015-01-21 Thread Paul Rouget
Botond Ballo wrote: > On Wed, Jan 21, 2015 at 1:37 AM, Paul Rouget wrote: > > Is it possible to make a container scroll before its child? > > > > Example: > > > > 2 nested divs. #out and #in. #in is inside #out. Both overflow. > > > > [...] > > > > Is there a way to make #out scroll first, then #i

Re: Nested scrolling behavior

2015-01-20 Thread Botond Ballo
On Wed, Jan 21, 2015 at 1:37 AM, Paul Rouget wrote: > Is it possible to make a container scroll before its child? > > Example: > > 2 nested divs. #out and #in. #in is inside #out. Both overflow. > > [...] > > Is there a way to make #out scroll first, then #in? > > Not sure how relevant this is but

Nested scrolling behavior

2015-01-20 Thread Paul Rouget
Is it possible to make a container scroll before its child? Example: 2 nested divs. #out and #in. #in is inside #out. Both overflow. When scrolling (mouse wheel), #in scrolls first. Once #in reached its max scroll, #out starts scrolling. See it in action here: http://jsbin.com/puxenibotu Is th