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

Fix: canvas's context2d property update timing #362

Closed
wants to merge 1 commit into from

Conversation

DanEscamilla
Copy link

Summary

This PR aims to fix the issue detailed in #360.

The issue stems from the native context2d calls being queued up to be executed later. This creates a rift between the draw calls and the setting of properties.

The proposed solution creates a closure for each property setter call and adds it to the draw queue, ensuring that the order of the draw calls and the property setters remains consistent chronologically.

Copy link
Contributor

@bodymovin bodymovin left a comment

Choose a reason for hiding this comment

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

lgtm

@HayesGordon
Copy link
Contributor

Hi @DanEscamilla, we must merge this PR into our upstream repository. This will require a member of the Rive team to co-author this change with you. We'll let you know when that has been pushed downstream to this repository, and then we can close this issue. Thanks for the contribution!

rive-engineering pushed a commit that referenced this pull request Jul 24, 2024
Community PR, coming from: #362

Diffs=
af137aeb0 Fix: canvas's context2d property update timing (#7674)

Co-authored-by: Daniel Carbajal <[email protected]>
Co-authored-by: Gordon <[email protected]>
@HayesGordon
Copy link
Contributor

The commit with your contribution is here @DanEscamilla : 0509735

We'll close this PR, and create a new release.

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.

3 participants