I'm currently working on a user interface where users can drag and drop a box with a red outline to position it on the screen within a black box.
Alternatively, users can also move the box by adjusting the inputs on the right side.
To enable the drag and drop feature, I am using Angular's cdkDrag functionality which applies a CSS property transform: translate3d(x, y, z)
to move the box. I update the input values accordingly using an event listener.
However, a challenge arises when a user manually inputs new values after dragging the box. This results in conflicting transform properties being applied upon subsequent drag actions, leading to a poor user experience.
View the issue of conflicting transform properties here
Is there a workaround for this problem?