diff options
| author | tusooa <tusooa@kazv.moe> | 2023-01-15 10:00:44 -0500 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-01-15 10:00:44 -0500 |
| commit | d2ba67d565ba68acc1938dc9ae2c866a6e39d4d6 (patch) | |
| tree | 1dad722edc84b5ba1759a13e1944167c5ffcf7c3 /src/components/media_modal/media_modal.js | |
| parent | a28032fa58ff341b8815a0651d621ed358efd168 (diff) | |
| parent | 4d2056d8aaa8f2c20a3275503857d38ac9112e5f (diff) | |
Merge remote-tracking branch 'upstream/develop' into tusooa/stylelint
Diffstat (limited to 'src/components/media_modal/media_modal.js')
| -rw-r--r-- | src/components/media_modal/media_modal.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/media_modal/media_modal.js b/src/components/media_modal/media_modal.js index ff993664..05ef9fbe 100644 --- a/src/components/media_modal/media_modal.js +++ b/src/components/media_modal/media_modal.js @@ -63,6 +63,11 @@ const MediaModal = { }, type () { return this.currentMedia ? this.getType(this.currentMedia) : null + }, + swipeDisableClickThreshold () { + // If there is only one media, allow more mouse movements to close the modal + // because there is less chance that the user wants to switch to another image + return () => this.canNavigate ? 1 : 30 } }, methods: { |
