bsdfzzzy / vue2-hammer

Hammer.js wrapper for Vue 2.x to support some touching operation in the mobile.
MIT License
253 stars 48 forks source link

Keep pan active after component unmount #32

Open azable opened 5 years ago

azable commented 5 years ago

Hi there,

Apologies if there is something obvious I am missing.

When using the pan event on a component which subsequently unmounts (and remounts elsewhere), the callback is no longer called. Is there a way to keep the event actively firing until the mouse/touch is released, even after unmounting? I'm trying to achieve a 'drag' effect.

Thanks