Socket
Socket
Sign inDemoInstall

vue-touch2

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-touch2

Tocca.js based touch events plugin for Vue.js


Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Install size
345 kB
Created
Weekly downloads
 

Readme

Source

vue-touch2

Alternate Touch events plugin for Vue.js

This is a directive wrapper for Tocca.js. This is an alternative to vue-touch which uses Hammer.js.

Install

CommonJS
  • Available through npm as vue-touch2.

    var VueTouch2 = require( 'vue-touch2' );
    Vue.use( VueTouch2 );
    
Direct include
  • You can also directly include it with a <script> tag when you have Vue and Tocca.js already included globally. It will automatically install itself, and will add a global VueTouch2.

Usage

Using the v-touch directive
<a v-touch:tap="onTap">Tap me!</a>

<div v-touch:swipeleft="onSwipeLeft">Swipe me!</div>

The supported touch events are: tap, dbltap, longtap, swipeleft, swiperight, swipeup, swipedown

See /example for a multi-event demo. To build it, run npm install && npm run build.

License

MIT

FAQs

Last updated on 29 Sep 2016

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