Scale swipe threshold with viewport width

This commit is contained in:
Tusooa Zhu 2021-08-02 21:19:04 -04:00
parent cb19db1006
commit 6980e4ddf1
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
3 changed files with 14 additions and 8 deletions

View file

@ -31,8 +31,8 @@ const SwipeClick = {
type: Array
},
threshold: {
type: Number,
default: 30
type: Function,
default: () => 30
},
perpendicularTolerance: {
type: Number,