Event with overlay in a task

I’m trying to use element.hover and element.out but i have a overlay in my task and this events dont fire when i pass the mouse.

Try pointer-events: none in your overlay’s CSS.

1 Like

did not work for me, i tried pointer-events: inherit and worked well.
to work I had to add the function in the element that i created for overlay.
I removed the eventbus…

eventBus.on('element.hover', mostrarDiv);
eventBus.on('element.out', mostrarDiv);

i’d like to use them but it’s not necessary.
close this and thank you. :smiley:

1 Like

Unfortunately, this doesn’t work because BPMN.io wraps our overlay in another div that captures mouse events.

Isn’t there an option on overlays adding to choose the case where we want it to happen? that would add pointer-events: none to that embedding div?