标签: javascript angular angular7
我想在单击可拖动元素时开始拖动。我正在使用https://github.com/mattlewis92/angular-draggable-droppable
<div mwlDraggable (click)="startDrag()"></div>
答案 0 :(得分:-1)
您的<div>中似乎缺少一些数据。请咨询:https://github.com/mattlewis92/angular-draggable-droppable/blob/master/projects/angular-draggable-droppable/src/lib/draggable.directive.ts#L70
<div>
回购所有者发布的演示也很有用:https://github.com/mattlewis92/angular-draggable-droppable/blob/master/src/demo/demo.component.html#L4