amplesdk icon indicating copy to clipboard operation
amplesdk copied to clipboard

dragenter event is not fired

Open tedbeer opened this issue 14 years ago • 0 comments

If two drop targets have same size and position dragEnter (maybe other events) is not fired for the actual target:

Here, for example, dragEvent is not fired for LI: <ul aml:droppable="true" xmlns="http://www.w3.org/1999/xhtml"><li aml:droppable="true">aaa</li></ul>

Make sure UL has no margins/paddings/borders. Only in this case AmpleSDK fails to find the correct target. It happened that I've used UL for one sort of DnD operations - to reorder LI elements. And LI - for another DnD interaction. I spent hours to find why DnD works for 2 LI elements and does not work for one.

PS. see also a test here - http://tedbeer.net/test/dnd.html

tedbeer avatar Nov 07 '11 17:11 tedbeer