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
This feature will lets the user to read the long notification's message
Behavior
If we have put the duration 4 seconds, and the user hovered the notification on the third second the Notyf will clear the timer, later when the user leaves the notification, Notyf will resume the timer from the last second it stopped at, this second would be the third second until the end of duration ( 4 seconds )
Implementation
if duration not zero, create "Timer" class what will handle duration properties
then make "NotyfView" trigger "mouseover" and "mouseleave" event
on "mouseover" call Timer.pause() method
on "mouseleave" call Timer.resume() method
on "Timer" finished remove the notification
The text was updated successfully, but these errors were encountered:
…ver and resume on mouseleave
- add "should pause on mouseover" test
- add "EventListener", "Timer" utilities' classes
- public "NotyfNotification.triggerEvent"
| to make "NotyfView" trigger "mouseover" event on "NotyfNotification"
- add "NotyfEvent.MouseOver"
- add "NotyfEvent.MouseLeave"
- update "Notyf._pushNotification"
= pause "NotyfNotification" timer and resume timer on "mouseleave"
= remove "NotyfNotification" on timer "finished" event
- trigger "mouseover" event on "NotyfNotification" by "NotyfView"
- trigger "mouseleave" event on "NotyfNotification" by "NotyfView"
closecaroso1222#110
Purpose
This feature will lets the user to read the long notification's message
Behavior
If we have put the duration 4 seconds, and the user hovered the notification on the third second the Notyf will clear the timer, later when the user leaves the notification, Notyf will resume the timer from the last second it stopped at, this second would be the third second until the end of duration ( 4 seconds )
Implementation
duration
not zero, create "Timer" class what will handle duration propertiesTimer.pause()
methodTimer.resume()
methodThe text was updated successfully, but these errors were encountered: