From 274d384572f5699ddf0b43065235b32304954ca1 Mon Sep 17 00:00:00 2001 From: tusooa Date: Sat, 14 Jan 2023 10:19:08 -0500 Subject: Make modal easier to close if there is only one image --- src/components/media_modal/media_modal.vue | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/media_modal/media_modal.vue') diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index d59055b3..8e1adda5 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -10,6 +10,7 @@ class="modal-image-container" :direction="swipeDirection" :threshold="swipeThreshold" + :disable-click-threshold="swipeDisableClickThreshold" @preview-requested="handleSwipePreview" @swipe-finished="handleSwipeEnd" @swipeless-clicked="hide" -- cgit v1.2.3-70-g09d2