Merge remote-tracking branch 'upstream/develop' into tusooa/stylelint

This commit is contained in:
tusooa 2023-01-15 10:00:44 -05:00
commit d2ba67d565
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
19 changed files with 58 additions and 30 deletions

View file

@ -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: {

View file

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