Skip to content

Commit

Permalink
perf: ⚡️ improve box selection performance
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector committed Oct 1, 2021
1 parent 56fe961 commit 6bce5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6/src/addon/selection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class Selection extends View<Selection.EventArgs> {
height /= scale.sy
const rect = new Rectangle(origin.x, origin.y, width, height)
const cells = this.getCellViewsInArea(rect).map((view) => view.cell)
this.reset(cells)
this.collection.reset(cells, { ui: true })
this.hideRubberband()
break
}
Expand Down

0 comments on commit 6bce5d0

Please sign in to comment.