Skip to content

Implement scrollgrab #7672

Closed
Closed

Description

@paulrouget

When scrolling, we want to be able to give a parent layer the priority.

Relevant bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=912666

Activity

  1. paulrouget commented on Mar 29, 2016

    @paulrouget
    ContributorAuthor

    In this test, we want to div to scroll before the iframe:

    <style>
      div {
        height: 400px;
        width: 400px;
        overflow: scroll;
        border: 20px solid red;
      }
    
      h1 {
        height: 20px;
      }
    
      iframe {
        background: white;
        height: 400px;
        width: 400px;
        border: none;
      }
    
    </style>
    
    <div mozscrollgrab="true">
      <h1>foo</h1>
      <iframe src="http://paulrouget.com" mozbrowser="true"></iframe>
    </div>
  2. paulrouget commented on Mar 29, 2016

    @paulrouget
    ContributorAuthor

    We should use a CSS property and propose it to www-style.

  3. paulrouget commented on Mar 29, 2016

    @paulrouget
    ContributorAuthor

    @glennw / @pcwalton could you describe what would need to be done to implement this?

  4. pcwalton commented on Mar 29, 2016

    @pcwalton
    Contributor

    Probably just have a flag on the scroll layer, propagate that down through all the layers of WebRender data structures, and use that to determine which layer should scroll when dispatching scroll events in WR.

  5. self-assigned this
    on May 11, 2016
  6. paulrouget commented on Nov 21, 2016

    @paulrouget
    ContributorAuthor

    This was relevant for Firefox OS, and for browserhtml when we were building scrollout toolbar based on scrollgrab and snappoints. It is not the case anymore, and scrollgrab is not part of any spec.

    Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions