Vote count:
0
I am getting an undefined value for the event object that I think should be available in the callback for the addEvent() function. This is what I'm doing.
element.addEvent('scroll', callback(event) {
console.log(event);
});
// on scroll, event is 'undefined'
I tested the same code attaching the callback to the click event instead and in that case the event variable was defined as you'd imagine. What am I missing here? My utlimate goal is to stop the normal effect of the scroll, i.e. prevent scrolling, so that I can scroll with an ease function using Fx.Scroll...
asked 47 secs ago
Aucun commentaire:
Enregistrer un commentaire