Closed
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
13.3.9
Description
cdkDrag works normally with box and axis constraints, but as soon as cdkDragConstrainPosition
is used, the dragged element incorrectly jumps a few pixels down the y-axis.
Reproduction
Please refer to the reproduction:
https://angular-ivy-iry1fk.stackblitz.io
https://stackblitz.com/edit/angular-ivy-iry1fk?file=package.json
Expected Behavior
The dragged element should only move horizontally and not jump down the y-axis.
Actual Behavior
The element jumps a few pixels down.
Environment
- Angular: 14.0.0
- CDK/Material: 14.0.0
- Browser(s): Chrome / Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows