From f6475ac75fe292bb1a7f8f599b04033dd19b9f14 Mon Sep 17 00:00:00 2001 From: Indigo-w <59961969+Indigo-w@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:08:36 +0800 Subject: [PATCH] fix: bind minimap plugin to graph without scroller (#4167) Co-authored-by: Indigo-w --- 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() } }