HTML5 dragend event firing immediately

前端 未结 3 1968
深忆病人
深忆病人 2021-01-04 05:38

I have several draggable elements

Box 1: Milk was a bad choice.
3条回答
  •  没有蜡笔的小新
    2021-01-04 06:42

    I don't have a direct solution, but changing the DOM in the dragStart event handler is causing this problem, and any code that changes the DOM should really go in the dragEnter event handler - doing so, drag&drop events are fired more reliably.

    Not sure whether this is by design - it feels a bit like a bug though.

提交回复
热议问题