From f7c9209d1803eff2568b1380c28f32041b47eef6 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 5 Jun 2024 20:49:31 -0400 Subject: [PATCH] remove unused code --- frontend/src/components/select-and-edit/utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/components/select-and-edit/utils.ts b/frontend/src/components/select-and-edit/utils.ts index f3180fd..9462778 100644 --- a/frontend/src/components/select-and-edit/utils.ts +++ b/frontend/src/components/select-and-edit/utils.ts @@ -18,7 +18,5 @@ export function getAdjustedCoordinates( const offsetX = rect ? rect.left : 0; const offsetY = rect ? rect.top : 0; - // Adjust for scale - const scale = 1; // the scale factor applied to the iframe - return { x: x / scale + offsetX, y: y / scale + offsetY }; + return { x: x + offsetX, y: y + offsetY }; }