Raynos / dom-delegator

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

add more events to commonEvents #11

Closed usirin closed 9 years ago

usirin commented 9 years ago

Those are some other common events. Maybe we should think about a way to extend that array?

Raynos commented 9 years ago

The way you extend it is to manually call delegator.listenTo(...)

Raynos commented 9 years ago

I can only add low volume events. For example mousemove happens to frequently and would slow the application down, it thus must be opt-in.

By default dom-delegator opts into the whitelist you see, maybe i should move the whitelist into mercury itself.