farling42 / fvtt-pdf-pager

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

[Bug] Uncaught (in promise) TypeError: undefined. Cannot read properties of null (reading 'pdfPage') #80

Closed mrkwnzl closed 5 months ago

mrkwnzl commented 7 months ago

Sometimes, but not reliably, Im getting the following error when I’m at either end of the PDF and try scrolling even further, for example when I’m at page 1 and try to scroll up.

It doesn’t seem to affect functionality, though.

Screenshot 2023-12-08 at 09 28 41

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

What method are you using to scroll up or down past the start/end of the document? The methods I've tried:

mrkwnzl commented 7 months ago

Sorry, yes, that should have been in there from the start. I’m using the mouse wheel with high resolution (which sends fractals between 0 and 1 for acceleration instead of actual mouse wheel clicks in pixels in its mouse wheel event). It seems to happen more often when I’m using the momentum feature, where the mouse wheel keeps on rolling after I stop scrolling, sending hundreds, maybe thousands of mouse wheel events.

farling42 commented 6 months ago

Should be fixed in 0.49.1