From 71753b9019524394baa1937f4cf472fec574f221 Mon Sep 17 00:00:00 2001 From: Indigo-w Date: Fri, 29 Dec 2023 11:23:52 +0800 Subject: [PATCH] fix: bind minimap plugin to graph without scroller --- packages/x6-plugin-minimap/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x6-plugin-minimap/src/index.ts b/packages/x6-plugin-minimap/src/index.ts index bc56eb4cb81..42a4167a80c 100644 --- a/packages/x6-plugin-minimap/src/index.ts +++ b/packages/x6-plugin-minimap/src/index.ts @@ -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() } }