thorvg / thorvg.web

ThorVG for Web System
https://www.thorvg.org
MIT License
5 stars 1 forks source link

ThorVG Player shows empty canvas for a while when it becomes intersecting state #34

Closed hermet closed 2 months ago

hermet commented 2 months ago

Please check the issue, currently ThorVG Player seems having same problem.

https://github.com/LottieFiles/dotlottie-web/issues/273

tinyjin commented 2 months ago

In ThorVG Web Player, the IntersectionObserver is default. This means current ThorVG Viewer has same condition to reproduce.

However in the viewer, I see it renders well.

CleanShot 2024-07-05 at 15 08 18@2x

Additionally, we don't have debouncing logic in that observer. The issue dotLottie has comes from JavaScript side not WASM. Observer callback seems to have some delays, and gets wrong event order due to the debounce.

ThorVG Web doesn't have it, so I think this is fine here. If you have similar error, could you please share your case?

hermet commented 2 months ago

Can't reproduce it with the latest version.