From 48d6cfa068fb837784217742859f9eedcfc97ecb Mon Sep 17 00:00:00 2001 From: Egor Didenko Date: Thu, 19 Sep 2024 14:17:19 -0400 Subject: [PATCH] feat: increased the capture area for dragging --- blocks/CloudImageEditor/src/CropFrame.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blocks/CloudImageEditor/src/CropFrame.js b/blocks/CloudImageEditor/src/CropFrame.js index 334afd64..61a7448c 100644 --- a/blocks/CloudImageEditor/src/CropFrame.js +++ b/blocks/CloudImageEditor/src/CropFrame.js @@ -151,10 +151,10 @@ export class CropFrame extends Block { if (isCenter) { const moveThumbRect = { - x: x + width / 3, - y: y + height / 3, - width: width / 3, - height: height / 3, + x: x + THUMB_CORNER_SIZE, + y: y + THUMB_CORNER_SIZE, + width: width - THUMB_CORNER_SIZE * 2, + height: height - THUMB_CORNER_SIZE * 2, }; setSvgNodeAttrs(interactionNode, moveThumbRect); } else {