Skip to content

fix: bound backlog lazy loading - #1021

Draft
kyui-azusa wants to merge 1 commit into
OpenWebGAL:mainfrom
kyui-azusa:fix/backlog-bounded-loading
Draft

fix: bound backlog lazy loading#1021
kyui-azusa wants to merge 1 commit into
OpenWebGAL:mainfrom
kyui-azusa:fix/backlog-bounded-loading

Conversation

@kyui-azusa

Copy link
Copy Markdown

Summary

  • scope backlog pagination checks to the backlog scroll container
  • require a fresh wheel or touch gesture before adding another batch
  • consume at most one 20-item batch per gesture and cap the limit at the actual backlog length

Root cause

The previous viewport-level IntersectionObserver could repeatedly observe newly rendered sentinels and append large portions of the backlog during one scroll.

Validation

  • yarn webgal:build

Closes #963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backlog 无限加载存在过度加载问题

1 participant