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

Auto will-change #2700

Merged
merged 33 commits into from
Jul 10, 2024
Merged

Auto will-change #2700

merged 33 commits into from
Jul 10, 2024

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented Jun 14, 2024

translateZ(0) seems not to have the same layerizing effect as it used to. In this PR we make each motion component manage its own willChange MotionValue.

Only values that can be responsible for adding to the compositor are added to willChange.

*
* @public
*/
transformPagePoint?: TransformPoint
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused

*
* @public
*/
allowTransformNone?: boolean
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused

@@ -372,6 +360,9 @@ export class AcceleratedAnimation<
)
}

const { onStop } = this.options
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't calling onStop callbacks previously

@mattgperry mattgperry merged commit 4341943 into main Jul 10, 2024
1 check passed
@mattgperry mattgperry deleted the feature/auto-will-change branch July 10, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants