In our code we have a group template:
$(go.Group,
'Auto',
{
layout: $(go.GridLayout, {
wrappingColumn: 6,
alignment: go.GridLayout.Position,
cellSize: new go.Size(1, 1),
spacing: new go.Size(3, 3),
}),
selectable: false,
movable: false,
mouseEnter(e, obj, prev) {
// do something
},
mouseLeave(e, obj, next) {
// do the opposite
},
},
$(go.Shape, {
fill: 'rgba(99,99,99,0)',
strokeWidth: 0,
name: 'SHAPE',
}),
$(go.Placeholder, {
padding: 5,
}),
)
The mouseEnter seems to work, but as soon as you move onto a node inside of the group the mouseLeave event is triggered.
There are no mouseEnter events subscribed on the nodes.
How do I keep the mouseLeave event from triggering if I am still “inside” the group?