Add swipe-click handler to media modal
Now swiping will correctly change the current media, and with a good preview. Clicking without swiping closes the overlay.
This commit is contained in:
parent
a36673a6a8
commit
29cd8fbd3b
5 changed files with 94 additions and 168 deletions
|
@ -2,5 +2,10 @@ import PinchZoom from '@kazvmoe-infra/pinch-zoom-element'
|
|||
|
||||
export default {
|
||||
props: {
|
||||
},
|
||||
methods: {
|
||||
setTransform ({ scale, x, y }) {
|
||||
this.$el.setTransform({ scale, x, y })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue