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

Bug in the last item animation #61

Open
Iuriy-Budnikov opened this issue Nov 17, 2022 · 4 comments
Open

Bug in the last item animation #61

Iuriy-Budnikov opened this issue Nov 17, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Iuriy-Budnikov
Copy link

Iuriy-Budnikov commented Nov 17, 2022

last but one item shifts to the right side

ScreenFlow

@zerodevx
Copy link
Owner

Yes, I noticed this too but I'm not sure if it's fixable. This happens when 2 or more toasts are removed at about the same time. svelte-toast actually delegates all animation work to be handled by Svelte, so it feels like it's a Svelte issue.

@Iuriy-Budnikov
Copy link
Author

Yes, I noticed this too but I'm not sure if it's fixable. This happens when 2 or more toasts are removed at about the same time. svelte-toast actually delegates all animation work to be handled by Svelte, so it feels like it's a Svelte issue.

Does it make sense to add some delay?

@zerodevx
Copy link
Owner

Normally I'd rather let Svelte do the heavy lifting re animations and batching - but I guess it's possible to place pop requests into a rate-limiting queue. I'll test this out once I have some time.

@zerodevx zerodevx added the enhancement New feature or request label Nov 18, 2022
@dontWatchMeCode
Copy link

Setting "toastContainerLeft" to a fixed value seems to fix the position,
items removed at the same time are still on top of one another.

I just used this: --toastContainerLeft: calc(100vw - 350px);

A bit stuck on the overlapping issue, tough.

Peek 2023-01-06 06-39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants