Skip to content

Commit 4993a2f

Browse files
authored
passiveListeners prop
1 parent e99d622 commit 4993a2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/SwipeOut.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export default {
4141
type: Boolean,
4242
default: false,
4343
},
44+
passiveListeners: {
45+
type: Boolean,
46+
default: false,
47+
},
4448
},
4549
watch: {
4650
revealed(val) {
@@ -258,7 +262,7 @@ export default {
258262
modifiers: {
259263
horizontal: true,
260264
mouse: true,
261-
prevent: true,
265+
prevent: !this.passiveListeners,
262266
mousePrevent: true,
263267
},
264268
}] : null,

0 commit comments

Comments
 (0)