Closed Sajito closed 2 years ago
Duplicate of #14280.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I have a cdkDragList inside an mat-dialog-overlay. When the page is scrolled before opening the dialog, then the drag drop behaviour is not working correctly. Instead of directly reordering the list on drag, the item has to be dragged at least the distance, which the page previously was scrolled. Which makes it also impossible to reorder the list, once you have scrolled far enough.
Reproduction
Here is a simple StackBlitz example: https://stackblitz.com/edit/angular-ivy-7bnaz4
Steps to reproduce:
Expected Behavior
I expect both cases to behave the same.
Actual Behavior
When using the second button, after scrolling, then the items won't reorder unless dragged far more than needed.
Environment
Output of
ng version
from my project.My project is running on Angular 11, but the StackBlitz provided is using Angular 13, to ensure the bug still exists and is not fixed already. Tested OS'es are Ubuntu 21.10 and MacOS 12. Browsers tested are: