From 59d44dca61ca52f3c29cdca89d282936520c4b42 Mon Sep 17 00:00:00 2001 From: Oliver Burgmaier Date: Fri, 19 Apr 2024 15:42:51 +0200 Subject: [PATCH] Only highlight the current selected node --- dom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom.js b/dom.js index 90ed2e5..13690d3 100644 --- a/dom.js +++ b/dom.js @@ -191,13 +191,14 @@ export class ASN1DOM extends ASN1 { this.head.onmouseover = function () { this.hexNode.className = 'hexCurrent'; }; this.head.onmouseout = function () { this.hexNode.className = 'hex'; }; node.asn1 = this; - node.onmouseover = function () { + node.onmouseover = function (event) { let current = !root.selected; if (current) { root.selected = this.asn1; this.className = 'hexCurrent'; } this.asn1.fakeHover(current); + event.stopPropagation(); }; node.onmouseout = function () { let current = (root.selected == this.asn1);