greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web

Home Page:https://gsap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

requestAnimationFrame does not work on WebXR

cyango opened this issue · comments

I'd like to use this lib with my VR project. But I know that gsap depends on requestAnimationFrame. I also read in the docs that if the default raf is not supported then it defaults to setTimeout.

But when I enter on WebXR mode on my Meta Quest browser it does not call the onUpdate or onStart for example

What can be done to solve this?

Best regards.

Can you please provide a minimal demo illustrating this problem? Like a CodePen or Stackblitz

GSAP does indeed fall back to using setTimeout() if requestAnimationFrame is not available.