Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.21k stars 154 forks source link

Ctrl-F5 (no cache refresh) breaks the random/new archives zone #732

Closed nonamethanks closed 1 year ago

nonamethanks commented 1 year ago

image

The archives start appearing in the middle. It's solved after an additional refresh, but breaks every time a hard refresh is done. Possibly related to issue #731, because the galleries with broken tooltips from that issue appear in this same zone that should have galleries but doesn't.

Tested on latest chrome & latest docker. Can be easily reproduced by hitting "disable cache" in the network tools. and refreshing the page.

Black bar added by me, obviously.

Difegue commented 1 year ago

Hmm, I can repro #731 but not this one, although I do remember seeing it once...

Difegue commented 1 year ago

Can repro on chromium browsers. (of course..)

pastalian commented 1 year ago

The reported behavior seems similar to swiper's centerInsufficientSlides used in index.js.

Maybe virtual slide didn't load thumbnails fast enough and swiper thought there were not enough slides? just a guess though.

Difegue commented 1 year ago

Tried quickly setting centerInsufficientSlides to false and it does look like that fixes it -- Guessing your hunch is correct on that one. Thanks!

Since I'm playing around with holopin right now, I've sent you a holobyte.