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
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()
method