From 34143840aac758e705d3f38a62b587dd8ea33eb3 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 16 Apr 2020 16:30:45 +0200 Subject: [PATCH] Frontend: Touch swipe on thumbnail in edit dialog Signed-off-by: Michael Mayer --- frontend/src/dialog/p-photo-edit-dialog.vue | 2 +- frontend/src/dialog/photo/details.vue | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/frontend/src/dialog/p-photo-edit-dialog.vue b/frontend/src/dialog/p-photo-edit-dialog.vue index 0c78902f8..1da6b2140 100644 --- a/frontend/src/dialog/p-photo-edit-dialog.vue +++ b/frontend/src/dialog/p-photo-edit-dialog.vue @@ -42,7 +42,7 @@ + @close="close" @prev="prev" @next="next"> diff --git a/frontend/src/dialog/photo/details.vue b/frontend/src/dialog/photo/details.vue index 9c37dc8e2..5449398cc 100644 --- a/frontend/src/dialog/photo/details.vue +++ b/frontend/src/dialog/photo/details.vue @@ -17,6 +17,7 @@ class="accent lighten-2 elevation-0" style="cursor: pointer" @click.exact="openPhoto()" + v-touch="{left, right}" > { - if (close) { - this.$emit('close'); - } + if (close) { + this.$emit('close'); + } }); }, close() {