jerrybendy / vue-touch-events

Support simple touch events (tap / swipe / touch hold)
MIT License
537 stars 51 forks source link

no 'tap' event after 'touchhold' event #80

Closed ghnacker closed 4 years ago

jerrybendy commented 4 years ago

Hi @ghnacker ,

Thanks for your PR.

This is a breaking change. If users' code depends on this behavior (a tap event bound after a touchhold), this could course issues. So we have to change the major version to v3.0 or add an option to enable this feature. What do you think? which one is better?

ghnacker commented 4 years ago

touchhold.prevent, touchhold.notap, holdtap ...

v-touch-options="{ touchHoldNoTap: true }", ...

no idea...

jerrybendy commented 4 years ago

Maybe add an option is better 😂

jerrybendy commented 4 years ago

There are too many options now, so I choose to release a new major version to make a break change, not add new option. Now it is v3.0.0. Thank you.