We know figuring out the process for contributing to an open source project can be intimidating, so we created this issue as a way for you to learn the ropes. (If you feel comfortable contributing to open source projects, please leave this issue for someone else.)
Amp-lightbox is an amp-component like a modal that expands to fill the viewport, until it is closed by the user. It is a position: fixed element that fill the whole viewport.
Unfortunately in ios safari, when a user overscrolls in the lightbox, there will be scroll freeze because safari thinks that the user is scrolling the background therefore freeze the scrolling of the foreground. And to fix that problem, one hacky solution is to set scrollTop = 1 when lightbox is overscroll (scrollTop == 0). We already had similar fix for viewport overscrolling
scrollTop adjustment in scrollHandler_ inside amp-lightbox.js when this.element.scrollTop == 0scrollTop when opening up the lightboxFixes #7800 in the description.Once approved, your changes will be merged. ⚡⚡⚡Congrats on making your first contribution to the AMP Project!⚡⚡⚡ You'll be able to see it live across the web soon!
Thanks, and we hope to see more contributions from you soon.
If you have questions ask in this issue or on your Pull Request (if you've created one) or see the How to get help section of the Getting Started guide.
Hi guys ! Can I pick this one ?
Sorry this issue is reserved for write/speak/code event this week. We will have more great first issues coming.
hum ok, gonna find another one then :)
@letsila Now that the event is over, feel free to work on this.
Great, I am on it.
Hi @letsila; I've sent you an invite to join ampproject on GitHub. Once you accept we'll be able to assign this issue to you. Thanks!
Hi @mrjoro, thanks for the invitation. I've just accepted it.
Thanks for making your first contribution to AMP @letsila!
It's a pleasure @mrjoro. Thanks to @muxin also who help me a lot with this. I'll continue contributing ;)
Most helpful comment
Great, I am on it.