mzohaibqc / svelte-toasts

A highly configurable notification/toast component with individual toast state management capabilities.
https://mzohaibqc.github.io/svelte-toasts/
MIT License
42 stars 6 forks source link

hold timer when house over toast. #14

Open jamiegau opened 3 months ago

jamiegau commented 3 months ago

I had a quick dig around your documentation and could not find a way to set the toast to NOT-close/hold-the-timer if the mouse is over the toast.

It's common for users to mouse over the message if they want to hold it on screen and not auto disappear.

Can we have an option to allow this common feature please?

Would prefer, when mouse over toast/message, the auto close timer holds/stops, and is reset to full timeout when the mouse is moved off/away from the toast message.

For now, I was looking at allowing the user to click on the toast and cause another permanent toast to appear in the middle of the screen.

Otherwise, great work.

mzohaibqc commented 3 months ago

@jamiegau I am too occupied these day but any PR is welcome. I will approve and merge and release a new version