Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit 04832df

Browse files
committed
FEATURE: Set general Hammer options with the 'options' prop.
1 parent 9742426 commit 04832df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414

1515
export default {
1616
props: {
17+
options: createProp(),
1718
tapOptions: createProp(),
1819
panOptions: createProp(),
1920
pinchOptions: createProp(),
@@ -30,7 +31,7 @@ export default {
3031

3132
mounted() {
3233
if (!this.$isServer) {
33-
this.hammer = new Hammer.Manager(this.$el)
34+
this.hammer = new Hammer.Manager(this.$el, this.options)
3435
this.recognizers = {} // not reactive
3536
this.setupBuiltinRecognizers()
3637
this.setupCustomRecognizers()

0 commit comments

Comments
 (0)