farling42 / fvtt-pdf-pager

PDF Pager for Foundry
MIT License
6 stars 4 forks source link

[Bug] Sidebar appears if it was opened before PDF Pager was enabled #79

Closed mrkwnzl closed 6 months ago

mrkwnzl commented 7 months ago

When PDF Pager is not enabled, and I open the sidebar in a PDF, and then enable PDF Pager, the sidebar shows up, but without the PDF controls, I can’t disable it. Opening the edit sheet and disabling it there doesn’t save it in the journal. Maybe related to #78?

Screenshot 2023-12-08 at 09 25 53

Foundry Electron App, v11.315 PDF Pager v0.49.0 Cypher System v2.12.0 (although I believe that to be irrelevant, but just in case)

farling42 commented 7 months ago

In this situation, the presence of the sidebar is stored directly in the browser by the pdfjs library. In my own testing, using Chrome with any account I get the same situation when opening the PDF, but if I switch to Firefox then the internal sidebar isn't opened.

This is a "feature" of the pdfjs library, which I can't control from outside unfortunately.