Skip to content

Commit

Permalink
update when lockscene: not append node on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
kctekn committed Nov 20, 2024
1 parent 3af015d commit fc10f03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/TagsRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fc10f03

Please sign in to comment.