diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2021-08-02 21:19:04 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-13 12:00:44 -0400 |
| commit | 6980e4ddf1aa8dfd8c3bba0ea6cc7de90f531ba9 (patch) | |
| tree | bd015030e00b9b28cb3479c390469ce3a944e0c7 /src/components/swipe_click | |
| parent | cb19db1006e84d9429d57d8a574dfaa9980d8ca7 (diff) | |
Scale swipe threshold with viewport width
Diffstat (limited to 'src/components/swipe_click')
| -rw-r--r-- | src/components/swipe_click/swipe_click.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/swipe_click/swipe_click.js b/src/components/swipe_click/swipe_click.js index b979f42a..238e6df8 100644 --- a/src/components/swipe_click/swipe_click.js +++ b/src/components/swipe_click/swipe_click.js @@ -31,8 +31,8 @@ const SwipeClick = { type: Array }, threshold: { - type: Number, - default: 30 + type: Function, + default: () => 30 }, perpendicularTolerance: { type: Number, |
