Skip to content

Fix(reader): toggle controls from the whole reader surface, not per-item#76

Merged
Aatricks merged 1 commit into
mainfrom
fix/reader-tap-toggle-dead-zones
Jul 6, 2026
Merged

Fix(reader): toggle controls from the whole reader surface, not per-item#76
Aatricks merged 1 commit into
mainfrom
fix/reader-tap-toggle-dead-zones

Conversation

@Aatricks

@Aatricks Aatricks commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Tap-to-toggle for the in-reader menu was a per-item clickable, and on text it sat inside the horizontal margin padding. That left dead zones where a tap did nothing:

  • left/right margins
  • gaps between paragraphs (Arrangement.spacedBy(fontSize × paragraphSpacing))
  • empty space below a short chapter, and gaps around image groups

Taps landing there silently no-op, which reads as "the tap did not register" — most noticeable when dismissing the menu.

Change

Single full-screen detectTapGestures on the content container in ReaderContentArea.kt. It cancels on any consumed movement, so the LazyColumn/pager keep scroll/swipe drags; the per-item clickables still consume taps over text and images, so the container only fires in the former dead zones. Each tap toggles exactly once.

Verification

  • compileStandardDebugKotlin + detekt: pass.
  • Device check: with the menu shown, dismiss on solid body text repeatedly (never misses), and confirm a tap in a margin/paragraph gap now toggles.

Tap-to-toggle was a per-item clickable applied inside the text's
horizontal margin padding, so the side margins, inter-paragraph gaps,
empty space below short chapters, and gaps around image groups were dead
zones where a tap did nothing. Felt like taps "not registering", worst
when dismissing the menu.

Add a single full-screen detectTapGestures on the content container.
The LazyColumn/pager still win drags (the detector cancels on any
consumed movement); per-item clickables still consume taps over text and
images, so the container only fires in the former dead zones. Each tap
toggles exactly once.
@Aatricks Aatricks merged commit eb684eb into main Jul 6, 2026
4 checks passed
@Aatricks Aatricks deleted the fix/reader-tap-toggle-dead-zones branch July 6, 2026 16:53
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