Make lint happy
This commit is contained in:
parent
3502d374e3
commit
f3269cdc10
3 changed files with 5 additions and 7 deletions
|
@ -20,10 +20,6 @@ library.add(
|
||||||
faCircleNotch
|
faCircleNotch
|
||||||
)
|
)
|
||||||
|
|
||||||
const onlyXAxis = ([x, y]) => [x, 0]
|
|
||||||
const SCALING_RESET_MIN = 1.1
|
|
||||||
const SCALING_ENABLE_MOVE_THRESHOLD = 1
|
|
||||||
|
|
||||||
const MediaModal = {
|
const MediaModal = {
|
||||||
components: {
|
components: {
|
||||||
StillImage,
|
StillImage,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import PinchZoom from '@kazvmoe-infra/pinch-zoom-element'
|
import PinchZoom from '@kazvmoe-infra/pinch-zoom-element'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
setTransform ({ scale, x, y }) {
|
setTransform ({ scale, x, y }) {
|
||||||
this.$el.setTransform({ scale, x, y })
|
this.$el.setTransform({ scale, x, y })
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
// Make lint happy
|
||||||
|
(() => PinchZoom)()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ const SwipeClick = {
|
||||||
swipeEndCallback: this.end,
|
swipeEndCallback: this.end,
|
||||||
swipeCancelCallback: this.cancel,
|
swipeCancelCallback: this.cancel,
|
||||||
swipelessClickCallback: this.click
|
swipelessClickCallback: this.click
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue