Prevent hiding media viewer if swiped over SwipeClick

This commit is contained in:
Tusooa Zhu 2022-02-20 22:45:58 -05:00
parent 90b066a744
commit 7dd1a0dd30
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
3 changed files with 16 additions and 4 deletions

View file

@ -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"