-
Notifications
You must be signed in to change notification settings - Fork 274
Scroll doesn't render pages correctly #18
Comments
Any luck with this @ghedwards? |
Sort of.. I ended up building our own solution entirely using PDFJS, unfortunately I probably can't share it on here. Happy to have a chat about it privately if it's something you're looking for, send me an email or a Hangouts chat request. |
Just figured it out! |
Hi @mvanlonden , thanks for the hint! I couldn't solve it with an array - instead, I made sure scrolling doesn't trigger more than one event by adding a timeout:
|
I encountered this too and am testing the "array" suggestion above. Seems to work.
|
Thanks guys! @roypardi do you want to do a pull request. I tried your code and works. |
I don't have a fork of this – I was just messing with a one-off download, so you will have to add it directly. |
You also need to remember to clear the renderedPages array when you change scale or rotate as the pages won't be re-rendered. |
Fixed in #57. But @patryksosinski 's point which is a good point is not catered yet! |
Hi guys, I have resolvedd this issues from my end. Please have a look below mentioned changes into my code (index.js) on Line number 140.
|
Scroll doesn't render pages correctly, I tried a branch that seems to attempt to fix the problem by running a debounce function around the scroll listener, but it just seems to make it more clunky.
So I thought why try and re-invent the wheel ? I've started some work to integrate pdf-annotate-js with PDFJS.PDFViewer by listening for it's and do the Annotation rendering / work on top of the PDFViewer that ships with pdfjs-dist.
I'm curious, has anyone else had these issues and are there any further thoughts on doing it this way ?
The text was updated successfully, but these errors were encountered: