https://github.com/chenjiahan/vtap
Vue tap plugin to remove click delays in iOS devices.
https://github.com/chenjiahan/vtap
click delay tap vue vue-tap
Last synced: about 1 year ago
JSON representation
Vue tap plugin to remove click delays in iOS devices.
- Host: GitHub
- URL: https://github.com/chenjiahan/vtap
- Owner: chenjiahan
- License: mit
- Created: 2017-05-05T02:53:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T07:33:51.000Z (about 9 years ago)
- Last Synced: 2025-04-10T08:05:24.190Z (about 1 year ago)
- Topics: click, delay, tap, vue, vue-tap
- Language: TypeScript
- Homepage:
- Size: 29.3 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vtap
`vtap` is a vue plugin to remove click delays in iOS.
- Bind tap event in iOS devices
- Lightweight, 1KB gzipped
- Built with TypeScript
## Install
```
yarn add vtap
```
## Usage
``` javascript
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.
``` html
Tap
```
You can add stop modifiers to call event.stopPropagation().
``` html
Tap
```
## License
[MIT](http://opensource.org/licenses/MIT)