Skip to content

Commit

Permalink
fix: bind minimap plugin to graph without scroller (#4167)
Browse files Browse the repository at this point in the history
Co-authored-by: Indigo-w <[email protected]>
  • Loading branch information
Indigo-w and Indigo-w committed Jan 23, 2024
1 parent dd63fa7 commit f6475ac
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 f6475ac

Please sign in to comment.