Skip to content
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

mouseenter and mouseleave don't call listener #9

Open
mikkoh opened this issue Jan 30, 2015 · 1 comment
Open

mouseenter and mouseleave don't call listener #9

mikkoh opened this issue Jan 30, 2015 · 1 comment

Comments

@mikkoh
Copy link

mikkoh commented Jan 30, 2015

For some reason 'mouseenter' and 'mouseleave' don't fire their listeners.

In the following example in chrome only el.addEventListener fires.

on( el, 'mouseenter', function() {

  console.log( 'dom-event' );
});

el.addEventListener( 'mouseenter', function() {

  console.log( 'addEventListener' );
});
@mattdesl
Copy link

weird, I'm seeing this too. mouseover works fine btw.

After struggling to figure out the riddle of ternaries and shorthand in the index.js, I think the problem is because the addEventListener is not scoped to the element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants