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:
parent
839627ffc4
commit
9f3a983fef
2 changed files with 24 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue