Closed ahmnot closed 2 weeks ago
Interesting, it seems that we don't account for the array being empty here:
@Rich-Harris Is this as simple as checking the length of matched
isn't 0?
I've upgraded to the latest version of Svelte and can't seem to repro this in your repository anymore. Can you confirm it's also fixed for you?
That is one of the errors you can inconsistently get with transitions as mentionend here, by the way. (It's still possible with the reproduction in that issue.)
That is one of the errors you can inconsistently get with transitions as mentionend here, by the way. (It's still possible with the reproduction in that issue.)
This isn't making use of Svelte transitions or animations though, it's purely CSS.
I can't reproduce this error (though I did get a separate each_key_duplicate
error — needed to make each ripple.id
unique). Perhaps it's been fixed already?
I can't reproduce either, so closing for now.
Describe the bug
When using my mouse on a little ripple effect code, there is a delay which seems like it is caused by a Svelte 5 bug according to the console and the visual effect.
Reproduction
You can see the bug here: https://amethyst-brandie-63.tiiny.site/
You can reproduce the bug when taking this repo:
https://github.com/ahmnot/site-reve/tree/svelte5-bugged-moving-mouse
Then click on the top right rectangle and let the mouse pressed and move it.
Logs
System Info
Severity
annoyance