diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2021-08-02 19:44:01 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-13 12:00:44 -0400 |
| commit | f3269cdc106511bc589dc68e71619a0d9581cd67 (patch) | |
| tree | 7d3f4bc21ce8dd1260a5831e89e7d85667893f03 | |
| parent | 3502d374e3d8546699f644fad2a5e98598d7df3a (diff) | |
Make lint happy
| -rw-r--r-- | src/components/media_modal/media_modal.js | 4 | ||||
| -rw-r--r-- | src/components/pinch_zoom/pinch_zoom.js | 6 | ||||
| -rw-r--r-- | src/components/swipe_click/swipe_click.js | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/components/media_modal/media_modal.js b/src/components/media_modal/media_modal.js index f4c99f6a..3de9822b 100644 --- a/src/components/media_modal/media_modal.js +++ b/src/components/media_modal/media_modal.js @@ -20,10 +20,6 @@ library.add( faCircleNotch ) -const onlyXAxis = ([x, y]) => [x, 0] -const SCALING_RESET_MIN = 1.1 -const SCALING_ENABLE_MOVE_THRESHOLD = 1 - const MediaModal = { components: { StillImage, diff --git a/src/components/pinch_zoom/pinch_zoom.js b/src/components/pinch_zoom/pinch_zoom.js index 36bebbce..82670ddf 100644 --- a/src/components/pinch_zoom/pinch_zoom.js +++ b/src/components/pinch_zoom/pinch_zoom.js @@ -1,11 +1,13 @@ import PinchZoom from '@kazvmoe-infra/pinch-zoom-element' export default { - props: { - }, methods: { setTransform ({ scale, x, y }) { this.$el.setTransform({ scale, x, y }) } + }, + created () { + // Make lint happy + (() => PinchZoom)() } } diff --git a/src/components/swipe_click/swipe_click.js b/src/components/swipe_click/swipe_click.js index 49b097ce..ac77154a 100644 --- a/src/components/swipe_click/swipe_click.js +++ b/src/components/swipe_click/swipe_click.js @@ -78,7 +78,7 @@ const SwipeClick = { swipeEndCallback: this.end, swipeCancelCallback: this.cancel, swipelessClickCallback: this.click - }); + }) } } |
