将dragstart和drop事件绑定到触摸事件

Jim*_*y T 17 html5 drag-and-drop touch

参考这个答案:https://stackoverflow.com/a/6362527/3034646

我如何绑定触摸事件,以便他们执行dragstart和drop事件?我已经尝试将dragstart绑定到touchdown并放到touchup但这会导致dragstart没有在dataTransfer.get/setData上获取.

是否可以映射触摸事件以复制dragstart和drop?

小智 -1

我建议使用这个https://github.com/bevacqua/dragula。非常容易集成。