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
Remove vsync from parallax #14042
Remove vsync from parallax #14042
Conversation
Part of ampproject#12748. This also puts the style mutations inside a mutation phase, since it affects the elements bounding box in the page.
this.translateYOffset_ = 0; | ||
|
||
/** @private {boolean} */ | ||
this.mutateScheduled_ = false; |
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 doesn't seem to change value
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.
What happened to the commits... Fixed.
@@ -102,6 +102,14 @@ class ParallaxElement { | |||
|
|||
/** @private @const {!Element} */ | |||
this.element_ = element; | |||
|
|||
/** @private {number} */ | |||
this.translateYOffset_ = 0; |
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 seems to be only set and never read back
LGTM. Thank you for making these changes yourself as part of layout work. Much appreciated! |
Part of #12748.
This also puts the style mutations inside a mutation phase, since it
affects the elements bounding box in the page.