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.
Describe the problem
The usage of
requestAnimationFrame
-basedtweened
andspring
fails in XR since anXRSession
provides its ownrequestAnimationFrame
.With Svelte 4, Threlte was able to provide the appropriate
requestAnimationFrame
viaset_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
andspring
and other motion-based utilities, possibly per-instance.Importance
nice to have