From 9f7bdc0dcc2abfcf974c6407c0b5707ee0da602f Mon Sep 17 00:00:00 2001 From: iozeey Date: Fri, 8 Dec 2023 17:14:24 +0500 Subject: [PATCH] fixing my signature and initials drag issues --- app/javascript/template_builder/area.vue | 104 ++++++++++------------- 1 file changed, 46 insertions(+), 58 deletions(-) diff --git a/app/javascript/template_builder/area.vue b/app/javascript/template_builder/area.vue index 7271543d..c276e377 100644 --- a/app/javascript/template_builder/area.vue +++ b/app/javascript/template_builder/area.vue @@ -96,6 +96,7 @@ +
- +
@@ -140,37 +141,20 @@ :id="field.uuid" :src="mySignatureUrl.url" class="d-flex justify-center w-full h-full" - style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;" - @click="handleMySignatureClick" - > - -
- -
- -
-
- +
+ +
+
+ +
@@ -609,6 +592,11 @@ export default { } }, startDrag (e) { + if (this.field.type === 'my_signature') { + this.handleMySignatureClick() + } else if (this.field.type === 'my_initials') { + this.handleMyInitialClick() + } this.selectedAreaRef.value = this.area if (!this.editable) {