Skip to content

Commit

Permalink
fix: bind minimap plugin to graph without scroller
Browse files Browse the repository at this point in the history
  • Loading branch information
Indigo-w committed Dec 29, 2023
1 parent 1a27a2a commit 71753b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6-plugin-minimap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class MiniMap extends View implements Graph.Plugin {
}

protected onTransform(options: { ui: boolean }) {
if (options.ui || this.targetGraphTransforming) {
if (options.ui || this.targetGraphTransforming || !this.scroller) {
this.updateViewport()
}
}
Expand Down

0 comments on commit 71753b9

Please sign in to comment.