Use native click for hiding overlay

The pointerup strategy is unsuccessful, as some other overlays
(Firefox's Inspect Element) will pass down pointerup events.
This commit is contained in:
Tusooa Zhu 2021-08-02 20:32:02 -04:00
parent 839627ffc4
commit 9f3a983fef
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
2 changed files with 24 additions and 5 deletions

View file

@ -53,8 +53,7 @@ const SwipeClick = {
this.$gesture.cancel(event)
},
handleNativeClick (event) {
event.stopPropagation()
event.preventDefault()
this.$gesture.click(event)
},
preview (offsets) {
this.$emit('preview-requested', offsets)