mardi 24 mars 2015

Windows on scroll firing twice


I cannot understand why is this code:



$(window).on("mousewheel DOMMouseScroll", function() {
alert("aa");
});


The alert triggers twice when you scroll on page...


Anyone knows how to fix this?


Here is a codepen, just scroll on the page :


http://ift.tt/1HA3L35


Thank you!





Aucun commentaire:

Enregistrer un commentaire