From fc10f03863415664cd3db8c81995daadc1b638d8 Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 24 Oct 2024 22:23:32 +0800 Subject: [PATCH] update when lockscene: not append node on hover. --- src/views/TagsRoutes.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/TagsRoutes.ts b/src/views/TagsRoutes.ts index 6364327..841a1aa 100644 --- a/src/views/TagsRoutes.ts +++ b/src/views/TagsRoutes.ts @@ -1037,7 +1037,13 @@ export class TagRoutesView extends ItemView { */ highlightOnNodeHover(node: ExtendedNodeObject | null) { if (!this.plugin.settings.customSlot) return; - if (this.isLockScene && this.highlightNodes.size!=0 && !this.highlightNodes.has(node)) return; + if (this.isLockScene && this.highlightNodes.size != 0 && !this.highlightNodes.has(node)) return; + if (this.isLockScene) { + // only update hovernode + this.hoverNode = node + this.updateHighlight(); + return; + } // no state change if ((!node && !this.hoveredNodes.size) || (node && this.hoverNode === node)) return; this.hoverNode = node;