1.0.3 • Published 10 years ago
vue-tap v1.0.3
vue-tap
Tap events plugin for Vue.js
This is a lightweight plugin for TouchEvent in mobile without any dependency, which removes the 300ms delay from clicks.
Install
CommonJS
- Available through npm as
vue-tap.
var VueTap = require('vue-tap')
Vue.use(VueTap)Direct include
- You can also directly include it with a
<script>tag. It will automatically install itself, and will add a globalVueTap.
Usage
Using the v-tap directive
<div v-tap="handler">I am a div.</div>also, you can pass parameters to the directive, like this:
<div v-tap="handler('hello', $event)">I am a div.</div>License
MIT