From df2ea7e1ba842f088b08b85509d57a4b9f1fd6af Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 14 Nov 2024 12:14:06 +0100 Subject: [PATCH] FIXED adding zone in signature vue app was not placed correctly when zooming --- .../Resources/public/vuejs/DocumentSignature/App.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue index 133983acc..483db281f 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue @@ -665,11 +665,11 @@ const addZoneEvent = async (e: PointerEvent, canvas: HTMLCanvasElement) => { scaleXToCanvas(x, canvas.width, PDFPageWidth) - scaleXToCanvas(BOX_WIDTH / 2, canvas.width, PDFPageWidth), y: - PDFPageHeight - + PDFPageHeight * zoom.value - scaleYToCanvas(y, canvas.height, PDFPageHeight) + scaleYToCanvas(BOX_HEIGHT / 2, canvas.height, PDFPageHeight), - width: BOX_WIDTH, - height: BOX_HEIGHT, + width: BOX_WIDTH * zoom.value, + height: BOX_HEIGHT * zoom.value, PDFPage: { index: page.value - 1, width: PDFPageWidth,