From f57945f941515e27f04b6176d2450528f36fe163 Mon Sep 17 00:00:00 2001 From: hazam Date: Thu, 9 Jan 2020 00:36:54 +0500 Subject: [PATCH] Reduced threshold to 30 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 2eae82921..02a27e61d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -111,7 +111,7 @@ function addTextElement( const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5; const ELEMENT_TRANSLATE_AMOUNT = 1; -const TEXT_TO_CENTER_SNAP_THRESHOLD = 60; +const TEXT_TO_CENTER_SNAP_THRESHOLD = 30; let lastCanvasWidth = -1; let lastCanvasHeight = -1;