Skip to content

Commit

Permalink
feat: increased the capture area for dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
egordidenko committed Sep 19, 2024
1 parent c915f71 commit 48d6cfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blocks/CloudImageEditor/src/CropFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 48d6cfa

Please sign in to comment.