Wednesday 31 July 2019

Drag and Drop interfering with scroll Angular 7 CDK [ionic] [angular]

I have an ionic app, which is built in angular, and thus has angular cdk drag and drop in it to rearrange a list. Drag and drop works great, however, on mobile, I cannot scroll at all. I believe the drag and drop gestures are eating up my scroll gestures.

I've attempted to set the cdkDragStartDelay to 5000 (milliseconds):

<cu-task-row
  cdkDrag
  [cdkDragData]="task"
  [cdkDragStartDelay]="5000"

It does delay the drag, but I still cannot scroll.

Is it possible to scroll and have drag and drop implemented in mobile using Angular cdk?



from Drag and Drop interfering with scroll Angular 7 CDK [ionic] [angular]

No comments:

Post a Comment