Describe the bug
As of now, when the user changes the current page using the designated pager in the toolbar of the PDFViewer, the pageChange event provides information about the previous and current pages using a zero-based format. Alternatively, when the pages are scrolled using the scrollbar and the mouse, the pageChange event provides information about the pages using indexes starting from one.
To Reproduce
Create a PDFViewer.
Handle the pageChange event.
Change the pages of the component using the scrollbar.
Change the pages of the component using the built-in pager in the toolbar.
Describe the bug As of now, when the user changes the current page using the designated pager in the toolbar of the PDFViewer, the pageChange event provides information about the previous and current pages using a zero-based format. Alternatively, when the pages are scrolled using the scrollbar and the mouse, the pageChange event provides information about the pages using indexes starting from one.
To Reproduce
Please, check out the following StackBlitz demo: https://stackblitz.com/edit/angular-juaxlt
Expected behavior The pageChange event should provide information about the pages of the PDFViewer in a consistent format.
Screenshots