Open wibimaster opened 1 year ago
Thanks for the issue. I can reproduce, but I didn't find any quick fix. Unfortunately I don't have much time to work on this library these days. If this is urgent I would recommend splitting the project into two .riv files.
Thanks for the issue. I can reproduce, but I didn't find any quick fix. Unfortunately I don't have much time to work on this library these days. If this is urgent I would recommend splitting the project into two .riv files.
I am facing the same issue. I have several different .riv files for different animations. The issue occurs when using more than one animation at a time. E. g. I use 3 animations, the first two do not display and the last one (in the HTML tree the lowest) appears fine.
According to a post in Discord, a possible quick fix was to add a delay(e.g. 100ms) between the animations. I am not sure how to implement the delays. Any idea?
Given the example for multiple animations on a page in the 0.3.1 build, is this issue resolved? Maybe due to @rive-app/canvas-advanced
being updated to 2.4.0
?
~It's a bit random, but I am so far not able to reproduce it on the 0.3.1 release.~
Edit to add: While I couldn't replicate it after updating, our QA team was able to do so in the 0.3.1
version, so I think this is still an open issue. I tried to do a little digging to see where a fix could go, but I wasn't sure if it'd be here or upstream. The timing "fix" mentioned above seemed a little hacky, and sometimes even just 100ms would completely misalign animations.
I'm using Angular 16.2.3, standalone way.
Each time I add more than one
<canvas>
in a component, I got an error...main.ts
curtains.component.ts
curtains.component.html
Error thrown
StackBlitz reproduction
https://stackblitz.com/edit/stackblitz-starters-nwmvhu?file=src%2Fcomponents%2Fcurtains%2Fcurtains.component.html
You can remove one canvas on the curtains.component.html file and check that it works again...