vtap
is a vue plugin to remove click delays in iOS.
- Bind tap event in iOS devices
- Lightweight, 1KB gzipped
- Built with TypeScript
yarn add vtap
import Vue from 'vue'
import Tap from 'vtap'
Vue.use(Tap);
v-tap
derective will prevent the click event and bind a tap event in iOS devices.
The derective will be ignored in other systems such as Android.
<button v-tap @click="doSomething">Tap</button>
You can add stop modifiers to call event.stopPropagation().
<button v-tap.stop @click.stop="doSomething">Tap</button>