Skip to content

Commit

Permalink
fix: 修复文本拖拽不符合预期的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangeSuger authored and boyongjiong committed Oct 12, 2024
1 parent 080eff1 commit 88ce74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/view/text/BaseText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 88ce74a

Please sign in to comment.