From 88ce74a04edc315017fdc35417cfd47cb2302573 Mon Sep 17 00:00:00 2001 From: ChangeSuger Date: Wed, 9 Oct 2024 23:32:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E4=B8=8D=E7=AC=A6=E5=90=88=E9=A2=84=E6=9C=9F?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/view/text/BaseText.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/view/text/BaseText.tsx b/packages/core/src/view/text/BaseText.tsx index 573d8240b..7eb12c97e 100644 --- a/packages/core/src/view/text/BaseText.tsx +++ b/packages/core/src/view/text/BaseText.tsx @@ -91,7 +91,7 @@ export class BaseText< graphModel: { transformModel }, } = this.props - if (deltaX && deltaY) { + if (deltaX || deltaY) { const [curDeltaX, curDeltaY] = transformModel.fixDeltaXY(deltaX, deltaY) model.moveText(curDeltaX, curDeltaY) }