Raynos / dom-delegator

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

Add touchstart + touchend + touchcancel #6

Closed Raynos closed 9 years ago

Raynos commented 9 years ago

I don't think we want touchleave on by default.

"mouseleave mouseenter touchleave touchstart"

Those all sound like high volume events that should be optin rather then globally defaulted.

cc @jxson

jxson commented 9 years ago

It could be off but I think touchleave is equivalent to touchend, the main difference being that the leave event fires when the touch happens outside the target element. It's probably fine to leave it out though...

Raynos commented 9 years ago

@jxson i believe touchenter & touchleave are for every enter & leave event per element.

Also MDN says they dont bubble so i dont know whether i can even capture them

Raynos commented 9 years ago

Published v9.0.1