Skip to content

Commit

Permalink
Only highlight the current selected node
Browse files Browse the repository at this point in the history
  • Loading branch information
olibu committed Apr 19, 2024
1 parent 88d7afd commit 59d44dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 59d44dc

Please sign in to comment.