You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
When Vue 2.0 came around, I attempted to update the v-touch directive to Vue 2.0's new API.
But we never published it so far, because I wasn't successful to keep the all features due to the API changes foir custom directives in Vue 2.0
Solution
I decided to rewrite it all as a component. API will look like this:
<v-touchtag="div" <!-- default. Use to change the root element rendered by the component -->v-on:pan="method"
v-bind:pan-options="{ ... }"
<!-- short syntax; -->@swipe="method"
:swipe-options="{ ... }"
><p>Slot Content goes here</p></v-touch>
Breaking Change & Migrating
Of course, this means we will have a complete breaking change with the version for Vue 1.0.