Skip to content

fix: stabilize webtoon page measurement#691

Merged
everpcpc merged 1 commit intomainfrom
codex/webtoon-measure-layout
Mar 24, 2026
Merged

fix: stabilize webtoon page measurement#691
everpcpc merged 1 commit intomainfrom
codex/webtoon-measure-layout

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

Webtoon pages without metadata dimensions could either render with an incorrect guessed height or require on-the-fly layout changes while the user was actively scrolling. That produced distorted rendering in the missing-metadata case and visible stutter during manual swipe scrolling.

Approach

Treat missing page dimensions as a measurement state instead of a renderable state. Webtoon now probes image metadata to obtain real pixel sizes, only displays page content once a valid size is known, and caches the resulting heights. When new measurements arrive during scrolling, layout updates are deferred until the scroll interaction finishes so drag gestures are not interrupted by item reloads.

Scope

  • Add shared helpers to probe image pixel sizes and update cached webtoon page heights
  • Gate webtoon page rendering on known dimensions for both iOS and macOS
  • Batch deferred layout refreshes after scroll completion to reduce scroll jank

Validation

  • make build-macos
  • make build-ios

Prevent webtoon pages without metadata dimensions from rendering until a real size is available.

Measure missing page dimensions from image metadata, cache the computed heights, and defer layout invalidation until scrolling stops to avoid stutter during manual swipes.
@everpcpc everpcpc merged commit 855e721 into main Mar 24, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/webtoon-measure-layout branch March 24, 2026 07:16
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.

1 participant