mfts / papermark

Papermark is the open-source DocSend alternative with built-in analytics and custom domains.
https://papermark.io
GNU Affero General Public License v3.0
5.66k stars 759 forks source link

Google Chrome - PDF File - Scrolling page counter bug #1333

Open aophil opened 3 weeks ago

aophil commented 3 weeks ago

Hi, I am testing whether Papermark is a good alternative for the company I work for, so while testing it with our documents, I spotted a bug in Google Chrome.

When you open a PDF document with multiple pages (38 pages in my case) in Papermark and start to quickly scroll through them instead of pressing the ⬇️ arrow, the page counter freezes at page "n," and pages "n+4, n+5, n+6, etc..." won't load.

Screenshot 2024-10-28 171859

I have to go back up so the page counter refreshes/unfreezes and the pages start loading again.

(Ps: On Firefox no issue at all.)

mfts commented 3 weeks ago

@aophil Can you please share the link with me if it's on papermark.io

mfts commented 3 weeks ago

Does that also happen on horizontal view?

AshishViradiya153 commented 3 weeks ago

"@mfts I understand what he's trying to say.

Link to document

Please check out this link. If you use the scrollbar to scroll, the page number won’t update and will show the old page number and then, if you start using the icon button, it will first scroll based on the page counter

mfts commented 3 weeks ago

It's possible that it takes longer to load because of slow network connection.

typically we preload the first 5-10 images and then on next-page click we load the n+1 image. so if you rapidly click next, it may get stuck. I will look into it.

i couldn't reproduce it with normal network connections tho

aophil commented 3 weeks ago

Hi @mfts , Thanks for the responsive answer. Here you go a video so you can better see what I'm talking about: Loom Video Frozen Papermark Page Number

Some people skim through the pages, so this frozen page # that won't follow the scrolling bar position in real-time can be problematic regarding user experience since pages just won't load as long as the page number is frozen.

mfts commented 3 weeks ago

/award 150

oss-gg[bot] commented 3 weeks ago

Awarding aophil: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/aophil