Socket
Socket
Sign inDemoInstall

vue-plugin-touch

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-plugin-touch

vue touch events


Version published
Weekly downloads
34
increased by25.93%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vue-plugin-touch

vue2.0 touch 事件 把原生的 touchstart,touchmove,touchend,touchcancel添加到Vue组件中

Install

该插件支持 Vue2.0. 不支持 Vue 1.*版本

通过npm安装

npm install vue-plugin-touch
import vueTouch from 'vue-plugin-touch';
Vue.use(vueTouch);
直接引用
<script src='vue-plugin-touch/dist/index.js' />

使用

<div v-touch:touchstart="onTouchStart" v-touch:touchmove="onTouchMove" v-touch:touchend="onTouchEnd" v-touch:touchcancel="onTouchEnd">Touch me!</div>

支持的事件

touchstart、touchmove、touchend、touchcancel

License

MIT

Keywords

FAQs

Last updated on 15 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc