vue-touch-box
v1.0.3
Published
A Component Library for Vue.js.
Readme
vue-touch-box
PC touch to elements was never this easy!
This is for vue 2.x
Installing
This package is available on npm.
Using npm:
npm install --save vue-touch-boxUsing yarn:
yarn add vue-touch-boxUsage
vue-touch-box can be used as a vue directive.
As a vue directive
JS
import VueTouchBox from 'vue-touch-box';
Vue.use(VueTouchBox)HTML
<div v-touch-box>
touch this
</div>Options
| Attribute | Description | Default | | :---- | :---- | :----: | | speed | scrolling speed. | 1 | | mobile | open the mobile. | false | | inertia | open the scroll inertia. | true | | rebound | scroll rebound,if horizontal scrolling then fail.| true |
