You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project was imported from plain svelte to Sveltkit after the recent 1.0.0 launch, so it may have something to do with that, although I am not sure. Also, I think I should mention this, when I first implemented Swapy in the plain svelte project, it was a bit laggy at first in that project too, but eventually I don't know how it got fixed.
In the above video it can be clearly seen that in the first dev build, which is in plain svelte, the swapping is very smooth and natural, but when I imported the same project to Sveltekit for better features, the swapping with Swappy is quite laggy
The text was updated successfully, but these errors were encountered:
throwing my 2 cents here even though without the code I'm unable to help further. If you are using dynamic try
this.swapy.onSwapEnd((event) => {
requestAnimationFrame(() => { // used for swapMode: 'drop', if not used, it will not work after first swap
this.swapy?.update();
});
});
I had similar bugs while implementing for angular, and in my case it was related to how items are tracked
<!-- track v.item?.index | track v.itemId | track v.slotId | track $index | v << all these cause various bugs, v is the most stable -->
@for (v of slottedItems(); track v) {
swapy-laggy-sveltekit.mp4
The project was imported from plain svelte to Sveltkit after the recent 1.0.0 launch, so it may have something to do with that, although I am not sure. Also, I think I should mention this, when I first implemented Swapy in the plain svelte project, it was a bit laggy at first in that project too, but eventually I don't know how it got fixed.
In the above video it can be clearly seen that in the first dev build, which is in plain svelte, the swapping is very smooth and natural, but when I imported the same project to Sveltekit for better features, the swapping with Swappy is quite laggy
The text was updated successfully, but these errors were encountered: