From 452cb267fb1902ba2c81f478dd6b12e881483525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 11 Jan 2021 19:29:35 +0100 Subject: [PATCH] shorten VideoScroll.vue --- app/src/components/VideoScroll.vue | 58 +++++++++++------------------- 1 file changed, 21 insertions(+), 37 deletions(-) diff --git a/app/src/components/VideoScroll.vue b/app/src/components/VideoScroll.vue index 9dffc18..09181c6 100644 --- a/app/src/components/VideoScroll.vue +++ b/app/src/components/VideoScroll.vue @@ -1,49 +1,28 @@ @@ -68,6 +47,11 @@ export default defineComponent({ } } }, + methods: { + isHorizontal(definition: VideoScrollDef): boolean { + return definition.direction === "left" || definition.direction === "right"; + } + }, setup(props) { const root = ref(null);