I'm creating a realtime system with Angular 10 where the user 1 drags items on the screen and the location of the item updates on user 2 screen. I'm using @angular/cdk/drag-drop for this.
I am updating the position on the user 2 screen by binding cdkDragFreeDragPosition
to the object's xPos
and yPos
properties which are updated on user 1 dropping the object:
[cdkDragFreeDragPosition]="{x: wsc.xPos, y: wsc.yPos}"
This works, but the position of the object for user 2 jumps rather than moving smoothly to the new position which is a bit ugly.
Is there a way to get the object on user 2 screen to move smoothly from it's initial position to the new position, please?