diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2022-02-20 22:45:58 -0500 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-13 12:02:02 -0400 |
| commit | 7dd1a0dd30773fd51508feaf93be53bdb744ec79 (patch) | |
| tree | 9c8af2c8d5431738382f2cd3074a5f6a050850f8 /src/components/media_modal/media_modal.vue | |
| parent | 90b066a7443ecb37b1a72d3b306471d0ad75c68c (diff) | |
Prevent hiding media viewer if swiped over SwipeClick
Diffstat (limited to 'src/components/media_modal/media_modal.vue')
| -rw-r--r-- | src/components/media_modal/media_modal.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index ff9c4953..1aa66a55 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -2,10 +2,11 @@ <Modal v-if="showing" class="media-modal-view" - @backdropClicked="hide" + @backdropClicked="hideIfNotSwiped" > <SwipeClick v-if="type === 'image'" + ref="swipeClick" class="modal-image-container" :direction="swipeDirection" :threshold="swipeThreshold" |
