Skip to content

fix(reader): update progress during Auto Scroll and put slider overlay values on top - #5676

Merged
chrox merged 3 commits into
mainfrom
fix/autoscroll-progress-5635
Aug 13, 2026
Merged

fix(reader): update progress during Auto Scroll and put slider overlay values on top#5676
chrox merged 3 commits into
mainfrom
fix/autoscroll-progress-5635

Conversation

@chrox

@chrox chrox commented Aug 13, 2026

Copy link
Copy Markdown
Member

Fixes items 2 and 3 of #5635 (item 1, jitter, is tracked separately in the issue).

Progress doesn't update while scrolling

The scrolled-mode relocate in the foliate paginator sits behind a 250ms trailing debounce. Auto Scroll steps the container every frame, so the timer reset forever and the percentage / time remaining only updated once scrolling paused. The paginator now forces a relocate at most once per second while an unbroken run of scroll events lasts (readest/foliate-js#72); the trailing debounce still reports the final position. Finger drags keep today's behavior (report on release), matching the preload skip rationale from #4785.

Speed / brightness overlay readout hidden by the finger

While the swipe gesture adjusts the value, the finger sits on or below the edge capsule, hiding the readout under the slider. The value label now sits at the top of the slider and the icon at the bottom, in both the Auto Scroll speed overlay and the brightness overlay, with a DOM-order unit test.

Verification

  • pnpm test: 9089 passed
  • pnpm test:browser: 357 passed (includes the new regression test)
  • pnpm lint and pnpm format:check: clean

🤖 Generated with Claude Code

chrox and others added 3 commits August 13, 2026 17:42
The scrolled-mode relocate in foliate sits behind a 250ms trailing
debounce, and Auto Scroll steps the container every frame, so the timer
reset forever and percentage plus time remaining only updated when the
scrolling paused. Bump foliate-js so a continuous run of scroll events
relocates at most once per second while it lasts, and add a regression
test driving a 2.5s scroll burst.

Fixes item 2 of #5635.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
While the swipe gesture adjusts speed or brightness the finger sits on
or below the edge capsule, hiding a readout placed under the slider.
Move the value label to the top and the icon to the bottom in both the
Auto Scroll speed overlay and the brightness overlay.

Fixes item 3 of #5635.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…x-wait fix

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chrox
chrox merged commit 124655e into main Aug 13, 2026
12 checks passed
@chrox
chrox deleted the fix/autoscroll-progress-5635 branch August 13, 2026 10:10
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