Use pinch-zoom-element for pinch zoom functionality
This commit is contained in:
parent
544db06294
commit
a36673a6a8
8 changed files with 94 additions and 16 deletions
|
@ -28,7 +28,7 @@ const mediaViewer = {
|
|||
commit('setMedia', media)
|
||||
dispatch('swipeScaler/reset')
|
||||
},
|
||||
setCurrentMedia ({ commit, state }, current) {
|
||||
setCurrentMedia ({ commit, state, dispatch }, current) {
|
||||
const index = state.media.indexOf(current)
|
||||
commit('setCurrentMedia', index || 0)
|
||||
dispatch('swipeScaler/reset')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue