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
tag. It will automatically install itself, and will add a global
VueTap
.
Usage
v-tap
directive
Using the <div v-tap="handler">I am a div.div>