How to detect dragLeave

501 Views Asked by At

In angular-drag-and-drop-lists you have dnd-dragover directive at your disposal. I can't figure out how to detect a dragLeave event. The problem is that I can't use ng-mouseleave directive as it never gets called while an item is dragged. The same holds true for any other JS or CSS solutions.

Is there any way how to detect dragLeave event?

I have looked at this answer: How to start mouseover event while dragging However, all of the proposed solutions are working due to XY coordinates which I don't want to use.

1

There are 1 best solutions below

0
On

The only way I could solve this was to modify the library. The proposed change is here.