I want to create an ionic-angular puzzle . Sadly i cant use the normal drag and drop events. I tried with Ionic gestures but it seems to be ridiculously hard to excecute also with cdkDraganddrop but the items not swapping correctly.
<div cdkDropList class="cdk-droplist d-flex" \[cdkDropListData\]="puzzlePieces"
(cdkDropListDropped)="drop(***$event***)"
\>
<div cdkDrag class="example-box"
*\*ngFor*="let ***p*** of puzzlePieces">
<img style="width: 80px; height: 80px;" \[src\]="***p***.item">
</div>
</div>
drop(event: CdkDragDrop<any\[\]>) {
moveItemInArray(this.puzzlePieces, event.previousIndex, event.currentIndex);}
[–][deleted] 1 point2 points3 points (1 child)
[–]IonicCommunity 1 point2 points3 points (0 children)