>> As part of this work, we want the <div> enclosing the address bar and the
>> content iframe to have special scrolling behaviour. Specifically, we want
>> this <div> (which will be overflow:scroll once my patches land) to scroll
>> before content in the iframe scrolls. Once the div has scrolled as far as
>> possible, the remaining scroll will be handed off to the iframe. We can call
>> this behaviour "scroll grabbing", in the sense that the <div> grabs the
>> scroll before it gets to the iframe.
>
> I really think this should be the default for content, actually.
> That's what I asked for in
> https://bugzilla.mozilla.org/show_bug.cgi?id=867787#c4
It sounds like what you're asking in that comment is that excess scroll
("overscroll") on a child element be handed off to the nearest scrollable
ancestor. I just implemented this recently (bug 898478).
The proposal I'm making in this thread is that for 'mozscrollgrab'
elements (or 'scrollgrab' if we're exposing it to content), they are
scrolled before their children, and overscroll on them is handed off
to their children.
Botond
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g