Raynos / dom-delegator

Decorate elements with delegated events
MIT License
57 stars 16 forks source link

What should be done to capture a scroll event? #25

Open hawkerboy7 opened 9 years ago

hawkerboy7 commented 9 years ago

As the question states. Scroll events don't appear to be supported. Logging dom-delegator shows events and rawEventListeners don't even have scroll.

What should I do to get scroll events working too?

dhruvio commented 8 years ago

It looks like we need to add the string "scroll" to index.js in the commonEvents array.

@Raynos do you need a pull request?

naomiaro commented 8 years ago

I did this

delegator=Delegator(); delegator.listenTo("scroll");

hawkerboy7 commented 8 years ago

@naomiaro thx thats should do the trick!:)

Raynos commented 8 years ago

We dont listen to scroll by default because its really expensive.

You can listen to it manually though using listenTo()