Skip to content

Commit

Permalink
Fix: canvas's context2d property update timing
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people committed Jul 24, 2024
1 parent 4de4f7f commit 0509735
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
50bc398c464061bb2ab5ac51e42901053ae63f1f
af137aeb014adaabeedc0dbb0fe8aca80b346550
4 changes: 3 additions & 1 deletion wasm/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,9 @@ Module["onRuntimeInitialized"] = function () {
},
set(target, property, value) {
if (property in c2dSource) {
c2dSource[property] = value;
newCanvasRenderer._drawList.push(() => {
c2dSource[property] = value;
});
return true;
}
},
Expand Down

0 comments on commit 0509735

Please sign in to comment.