Highlight the current menu item in dropdown menu on mouse over

This commit is contained in:
Rajnikant Lodhi 2022-08-18 17:22:42 +05:30
parent 85f60fbc1c
commit 15f8fff179

View File

@ -103,6 +103,8 @@ export class NodeWidget implements Widget {
})
.on('mouseover', function (this, n: MapNode) {
select(this).attr('class', 'over');
self.onContextMenu.emit(new NodeContextMenu(event, n));
})
.on('mouseout', function (this, n: MapNode) {
select(this).attr('class', '');