I create an iframe
in JavaScript and add a drag enter event listener to it.
I wrote a small sample here:
Codepen
drag.addEventListener("dragenter", dragEnter, false)
It works well in codepen.
My real project is in a chrome extension. I write the same code but the dragenter
event works only from left/top boundaries.
Thanks in advance!