From 21f3d396fb03bb42c8a3bd6ca482437612bb0baa Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Mon, 30 May 2022 08:14:13 +0100 Subject: [PATCH] fix(frontend): corrects rotation direction --- packages/frontend/src/main/components/common/PreviewImage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/main/components/common/PreviewImage.vue b/packages/frontend/src/main/components/common/PreviewImage.vue index cb1ac5d01..796584d08 100644 --- a/packages/frontend/src/main/components/common/PreviewImage.vue +++ b/packages/frontend/src/main/components/common/PreviewImage.vue @@ -131,7 +131,7 @@ export default { // else: we've aborted the request due to mouse moving out } this.loading = false - }, 500) + }, 250) } if (!val && this.loading) { @@ -157,7 +157,7 @@ export default { const rect = e.target.getBoundingClientRect() const x = e.clientX - rect.left const step = rect.width / 24 - let index = Math.round(x / step) + let index = Math.abs(24 - Math.round(x / step)) if (index >= 24) index = 24 - 1 this.imageIndex = index },