-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the newly proposed scroll-boundary-behavior
for amp-sidebar
, amp-lightbox
#10623
Comments
/cc @cramforce: places we can use this in AMP |
CC @dvoytenko |
We should just do it. |
Rolling forward to H2 October milestone. Please correct if needed. |
This is good in Chrome and Edge, but not implemented in Safari. |
@cathyxz Have we deployed this though? |
Nope, sorry. I meant that the |
Re: b/118645457. In the meantime, can we fix this behavior for scrollable lightbox? Something similar to the 1px scrollTop hack we do for iOS embed viewport. |
@jridgewell We do that already https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/0.1/amp-lightbox.js#L482 b/118645457 happens regardless of scrollable lightbox. |
You're only applying it in scrolling-up direction. You need to apply it to the scrolling-down direction, too. |
@jridgewell Runtime doesn't do the bottom either
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Any update? |
Proposed CSS standard
scroll-boundary-behavior
allows developers to decide the browser's behavior once a scroller has reached its full extent.When launched, we should use it on
amp-sidebar
andamp-lightbox
to prevent overscrolling of the parent body (usingcontain
)https://www.chromestatus.com/feature/5734614437986304
w3c/csswg-drafts#769
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/txdySyr-mb0/tPQJZvJiBw
https://wicg.github.io/scroll-boundary-behavior/AJ
/cc @dvoytenko
The text was updated successfully, but these errors were encountered: