Skip to content

[Bug Report]: 画布缩放时所有节点 re-render,导致卡顿 #2396

Open

Description

@ZivvW

发生了什么?

画布缩放时所有节点会 re-render。
感觉问题出在 BaseNode 的 render 中 setStep 时引用了 SCALE_X,导致 SCALE_X 变化就重新触发 render 了

if (adjustNodePosition && draggable) {
this.stepDrag.setStep(gridSize * SCALE_X)
}

logicflow/core版本

2.1.11

logicflow/extension版本

2.1.15

logicflow/engine版本

No response

浏览器&环境

Chrome

Activity

  1. added a commit that references this issue on Apr 5, 2026
    3df4338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions