1.0.3 • Published 4 years ago
vue-touch-box v1.0.3
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-box
Using yarn:
yarn add vue-touch-box
Usage
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 |