Prevent the click event from firing on content below modal
This commit is contained in:
parent
0190a36070
commit
3502d374e3
1 changed files with 6 additions and 1 deletions
|
@ -70,7 +70,12 @@ const MediaModal = {
|
||||||
return fileTypeService.fileType(media.mimetype)
|
return fileTypeService.fileType(media.mimetype)
|
||||||
},
|
},
|
||||||
hide () {
|
hide () {
|
||||||
this.$store.dispatch('closeMediaViewer')
|
// HACK: Closing immediately via a touch will cause the click
|
||||||
|
// to be processed on the content below the overlay
|
||||||
|
const transitionTime = 100 // ms
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$store.dispatch('closeMediaViewer')
|
||||||
|
}, transitionTime)
|
||||||
},
|
},
|
||||||
goPrev () {
|
goPrev () {
|
||||||
if (this.canNavigate) {
|
if (this.canNavigate) {
|
||||||
|
|
Loading…
Reference in a new issue