I'm implementing drag and drop on a checkers like game, all working fine ... until the board is rotated then all dnd and implementation is broken: when I drag a piece to the top, the piece goes to bottom, when is dragged to the left, goes to the right.
Sample code of the issue https://stackblitz.com/edit/angular-h3xixz?file=src%2Fstyles.scss
this is the fragment of css who breaks the dnd behavior, but I really need to rotate the board dinamically during the game.
.basic-container {
padding: 30px;
transform: rotate(180deg);
}
I don want to discard the @angular/cdk implementation, but maybe I have no choice, I am going nuts.
UPDATE
For more clarity of the issue I'm attaching an example with an animation to rotate the container. I'm already have a workaround for this, which I will share in the answers.