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
Amp slidescroll experiment - Handling Native Snapping #3798
Conversation
this.noOfSlides_ = this.slides_.length; | ||
|
||
/** @private @const {boolean} */ | ||
this.hasLooping_ = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already assigned to above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Can I try this on Heroku? |
@cramforce - heroku url - https://ampskrish.herokuapp.com/test/manual/amp-slidescroll.amp.html BTW - this only works on Iphone/safari (were snap points work). |
const currentScrollLeft = this.slidesContainer_./*OK*/scrollLeft; | ||
if (currentScrollLeft != this.previousScrollLeft_ && | ||
!this.hasNativeSnapPoints_) { | ||
// TODO(sriramkrish85)Handle custom scroll here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: space after )
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
LGTM |
d238724
to
4287743
Compare
In this PR
Yet to come
Part 4 for - #3465