We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675d82e commit 219e1f5Copy full SHA for 219e1f5
src/cdk/drag-drop/drag-ref.ts
@@ -1398,7 +1398,8 @@ export class DragRef<T = any> {
1398
1399
// ClientRect dimensions are based on the scroll position of the page and its parent
1400
// node so we have to update the cached boundary ClientRect if the user has scrolled.
1401
- if (this._boundaryRect && target.contains(this._boundaryElement)) {
+ if (this._boundaryRect && target !== this._boundaryElement &&
1402
+ target.contains(this._boundaryElement)) {
1403
adjustClientRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);
1404
}
1405
0 commit comments