Skip to content

Commit

Permalink
Fix: update hoverable element when mouse leave the NAD (#129)
Browse files Browse the repository at this point in the history
Signed-off-by: Seddik Yengui <seddik.yengui_externe@rte-france.com>
  • Loading branch information
YenguiSeddik authored Nov 29, 2024
1 parent 51a54e5 commit 7d5b7cd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ export class NetworkAreaDiagramViewer {
this.svgDraw.on('mouseover', (e: Event) => {
this.onHover(e as MouseEvent);
});

this.svgDraw.on('mouseout', () => {
this.onToggleHoverCallback?.(false, null, '', '');
});
}
this.svgDraw.on('panStart', function () {
if (drawnSvg.parentElement != undefined) {
Expand Down

0 comments on commit 7d5b7cd

Please sign in to comment.