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
; Vue
HTML
touch this
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 |