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

Expose set_raf in Svelte 5 #12133

Open
grischaerbe opened this issue Jun 21, 2024 · 1 comment
Open

Expose set_raf in Svelte 5 #12133

grischaerbe opened this issue Jun 21, 2024 · 1 comment

Comments

@grischaerbe
Copy link

Describe the problem

The usage of requestAnimationFrame-based tweened and spring fails in XR since an XRSession provides its own requestAnimationFrame.

With Svelte 4, Threlte was able to provide the appropriate requestAnimationFrame via set_raf (implemented here) but this ability is currently missing in Svelte 5.

Describe the proposed solution

Expose a method to set the driver of tweened and spring and other motion-based utilities, possibly per-instance.

Importance

nice to have

@paoloricciuti
Copy link
Member

Can't you import raf and update the tick function?

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

No branches or pull requests

2 participants