Skip to content
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

Merged
merged 2 commits into from Mar 16, 2018

Conversation

jridgewell
Copy link
Contributor

Part of #12748.

This also puts the style mutations inside a mutation phase, since it
affects the elements bounding box in the page.

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;
Copy link
Contributor

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

Copy link
Contributor Author

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;
Copy link
Contributor

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

@aghassemi
Copy link
Contributor

LGTM. Thank you for making these changes yourself as part of layout work. Much appreciated!

@jridgewell jridgewell merged commit 20ea87e into ampproject:master Mar 16, 2018
@jridgewell jridgewell deleted the amp-layers-mutation-6 branch March 16, 2018 23:26
@jridgewell jridgewell added this to TODO in Layers via automation Apr 9, 2018
@jridgewell jridgewell moved this from TODO to Done (Sub tasks) in Layers Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Layers
  
Done (Mutation Subtasks)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants