Skip to content

Commit

Permalink
Issue primefaces#13856 / Dialog: bad drag behavior when keepInViewpor…
Browse files Browse the repository at this point in the history
…t is false

Fixes primefaces#13856
  • Loading branch information
aleprex99 authored Oct 12, 2023
1 parent 97045e7 commit 7f8b13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {
this.lastPageX = event.pageX;
this.container.style.left = `${leftPos}px`;
this.lastPageY = event.pageY;
this.container.style.top = `${leftPos}px`;
this.container.style.top = `${topPos}px`;
}
}
}
Expand Down Expand Up @@ -1016,4 +1016,4 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {
exports: [Dialog, SharedModule],
declarations: [Dialog]
})
export class DialogModule {}
export class DialogModule {}

0 comments on commit 7f8b13d

Please sign in to comment.