Open J4gQBqqR opened 3 months ago
BTW, the update interval is 2 milliseconds (while (duration / ((value - initial) / step) < 2) {
) this is way too aggressive. I would suggest set something as 50ms.
Thank you.
Using runes is not backward compatible so the component will be incompatible with all Svelte 4 and Svelte 3 apps if we use runes.
I think it's still too soon. Especially when stable version of Svelte 5 is not released yet.
Svelte introduces runes and changes to event. I rewrote your component using svelte 5 and typescript. I do not know your opinion on typescript and therefore did not create pull request.
Here is the code for your reference: