Skip to content

Commit

Permalink
Fixed #11284 - Dialog | Scrolling breaks draggable dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Mar 30, 2022
1 parent 3fe4a80 commit 8771dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export class Dialog implements AfterContentInit,OnInit,OnDestroy {
let containerHeight = DomHandler.getOuterHeight(this.container);
let deltaX = event.pageX - this.lastPageX;
let deltaY = event.pageY - this.lastPageY;
let offset = DomHandler.getOffset(this.container);
let offset = this.container.getBoundingClientRect();
let leftPos = offset.left + deltaX;
let topPos = offset.top + deltaY;
let viewport = DomHandler.getViewport();
Expand Down

0 comments on commit 8771dcc

Please sign in to comment.