From 95161b05e4e63d980fe4af2338a757d8188660b2 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Wed, 9 Feb 2022 11:53:08 +0100 Subject: [PATCH] Update Hyperlink.tsx --- src/element/Hyperlink.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/element/Hyperlink.tsx b/src/element/Hyperlink.tsx index 6221dd7fe..9c82c2437 100644 --- a/src/element/Hyperlink.tsx +++ b/src/element/Hyperlink.tsx @@ -296,11 +296,8 @@ export const getLinkHandleFromCoords = ( const linkMarginY = size / appState.zoom.value; const centerX = (x1 + x2) / 2; const centerY = (y1 + y2) / 2; - const centeringOffset = - (size - 8) / (2 * appState.zoom.value) + - size / appState.zoom.value - - linkWidth; - const dashedLineMargin = 4 / appState.zoom.value; + const centeringOffset = (size - 8) / (2 * sizeZoom); + const dashedLineMargin = 4 / sizeZoom; // Same as `ne` resize handle const x = x2 + dashedLineMargin - centeringOffset;