Skip to content

Notifications won't close while animating #69

Closed
SecretAgentKen opened this Issue Aug 6, 2012 · 1 comment

3 participants

@SecretAgentKen

I have the following Javascript on my page:

$('body').on('mouseenter','[title]',function(el){
      var timer = setTimeout( function(){
        var toolTip = noty({text:someFunc(el.target.title),dismissQueue:true,layout:'bottom'});
        $(el.target).on('mouseleave',function(){
          toolTip.shown = true;
          toolTip.close();
          $(el.target).off('mouseleave');
        })
      }, 750);
      $(el.target).on('mouseleave', function(){
        clearTimeout(timer);
      });
    });

If I just have toolTip.close, I'll end up with open notifications if I leave the element while the notification is animating. I HAVE to set shown = true to bypass that.

@ClemensSchneider

I fixed this issue in pull request #84.

@needim needim closed this Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.