ngx drag drop - unbind mouse event

717 views Asked by At

I am using ngx Drag Drop https://github.com/reppners/ngx-drag-drop and it is working quite well. However i need to achieve one functionality that i have described in their issues but no response yet...

https://github.com/reppners/ngx-drag-drop/issues/78

I have done it with jquery easyUi in pure jquery but in not able to achieve in angular. Can anybody please assist?

jquery EasyUI Code

$( ".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
  }
});

I have created JSBin for easyUI as well - https://jsbin.com/tohexowubu/edit?html,output

I want to achieve same effect in ngxDragDrop

0

There are 0 answers