Skip to content

Commit

Permalink
fix: Fix the problem that the edge of rectTool cannot be dragged
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed May 15, 2022
1 parent 3a75b04 commit f6d3f11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,8 @@ class RectOperation extends BasicToolOperation {

default: {
if (
selectedRect.x + selectedRect.width > this.imgInfo?.width ||
selectedRect.y + selectedRect.height > this.imgInfo?.height
selectedRect.x + selectedRect.width > this.imgInfo?.width + 0.01 ||
selectedRect.y + selectedRect.height > this.imgInfo?.height + 0.01
) {
// 对线条和点先不做延伸的判断
return;
Expand Down

0 comments on commit f6d3f11

Please sign in to comment.