You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request
Hi,
First of all thanks for the great work on this.
Context :
I am using pdf-viewer with option "show-all"= false and use option "page" to navigate through my pdf.
Description of the issue :
I load my first pdf with 2 pages.
I navigate to page 2 successfully.
I load a second pdf with 2 pages.
When I try to navigate to page 2 nothing happen I stay stuck on page 1.
Explaination
When I load the new pdf, this._latestScrolledPage is not cleared and stay at 2. So it'is not possible to render page 2 because of the condition : if (page.currentValue === this._latestScrolledPage) { return; } into method ngOnChanges() on page change condition.
Tested Solution
Reset this value on clear() method (called when new pdf is loaded) : this._latestScrolledPage = 0;
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Hi,
First of all thanks for the great work on this.
Context :
I am using pdf-viewer with option "show-all"= false and use option "page" to navigate through my pdf.
Description of the issue :
Explaination
When I load the new pdf, this._latestScrolledPage is not cleared and stay at 2. So it'is not possible to render page 2 because of the condition :
if (page.currentValue === this._latestScrolledPage) { return; }
into method ngOnChanges() on page change condition.Tested Solution
Reset this value on clear() method (called when new pdf is loaded) :
this._latestScrolledPage = 0;
The text was updated successfully, but these errors were encountered: