-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
[Feature Request] Ability to pause timeout when actively hovering/mousing over the toast #148
Comments
Hi @avisra, this sounds like a great enhancement. Is this something you're be willing to create a PR for? |
In addition to this, it would be great if the toast would immediately fade out upon mouse out. |
@hellfirehd: "immediately fade out upon mouse out" - In my own toast notifications library I have a ExtendedTimeout option, which is used toastr as well: https://codeseven.github.io/toastr/demo.html basically you can configure the delay between mouse out and and fade out. |
This should be pretty easy to add, I don't know how to propose this to implement but something like this would work so if someone can check it and merge it with the next build
maybe add another property if AutoCloseOnMouseOut and then set _progress=99 before Unpause (better to stay up 1 more sec) or just call _timer.Dispose() This can have max 1 sec delay on pausing since ticking is every 1 sec |
* added ability to use toast position on each toast instance instead of single global position * - passing additinal css classes to toast (#207) * Pause on hover feature #148 (#203) --------- Co-authored-by: Matija Gluhak <matija.gluhak@vipdata.hr> Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
Is your feature request related to a problem? Please describe.
Let's assume the toast message requires taking action - like clicking a button, or copying some text out from it. Depending on the speed of the user, it is a common complaint that the toast closes before they can complete the action.
Describe the solution you'd like
Similar to the react-toastify library, I recommend we add a "pauseOnHover" option which enables this feature. When a user's mouse is actively hovering over a toast message, the timeout should be paused, and the progress bar should be paused.
Describe alternatives you've considered
We've considered just increasing the timeout... but this is not desirable
The text was updated successfully, but these errors were encountered: