我正在使用ngx拖放https://github.com/reppners/ngx-drag-drop,并且运行良好。 但是,我需要实现我在他们的问题中描述的一项功能,但尚未得到任何回应...
https://github.com/reppners/ngx-drag-drop/issues/78
我已经在纯jquery中使用jquery easyUi做到了,但是无法在angular中实现。有人可以帮忙吗?
jquery EasyUI代码
$( ".ui-widget-content" ).draggable({
cursor: "move",
scroll: true,
appendTo:'body',
onStartDrag: function(e) {
$(document).unbind('mouseup'); --> this is the trick that keeps dragged element with cursor
}
});
我也为easyUI创建了JSBin-https://jsbin.com/tohexowubu/edit?html,output
我想在ngxDragDrop中实现相同的效果