Hello, I'm working on making the address bar in the browser app work more like Fennec (bug 860812).
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. To ensure that only apps that explicitly want this behaviour get it, I am proposing that we introduce a new attribute called 'mozscrollgrab', which the browser app would set on the <div> in question. Only elements with this attribute would get the scroll grabbing behaviour. I propose that this attribute be unofficial/undocumented for now, until we are confident that this is the right design for us, at which point we can make it official/documented if we want. Thoughts? Thanks, Botond _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
