Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
{ | ||
"name": "vue-touch", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"main": "dist/vue-touch.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -65,2 +65,3 @@ # vue-touch | ||
**Example** | ||
``` html | ||
@@ -103,3 +104,4 @@ <!-- detect only horizontal pans with a threshold of 100 --> | ||
``` | ||
**Example** | ||
```html | ||
<v-touch | ||
@@ -110,3 +112,3 @@ <!-- enable all recognizers --> | ||
<!-- disable all recognizers --> | ||
v-bind:enabled="true" | ||
v-bind:enabled="false" | ||
@@ -119,3 +121,18 @@ <!-- pass an object to enable and disable recognizers individually --> | ||
#### The 'options' prop | ||
Hammer accepts a few general options that are normally passed when creating a Hammer instance with `new Hammer()` or `new Hammer.Manager()`. | ||
In vue-touch, you can pass those options via the `options` prop: | ||
|Prop|allowed Values| | ||
|----|--------------| | ||
|options| https://hammerjs.github.io/api/#hammer.defaults | | ||
**Example** | ||
```html | ||
<v-touch options="{ touchAction: 'pan' }" /> | ||
``` | ||
### Public Component Methods | ||
@@ -122,0 +139,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41257
231