Conversation
Tapping the left/right zones in a PDF (fixed-layout) book only revealed
the toolbar on the first tap; a second tap was required to turn the page.
EPUB was unaffected.
useAutoHideControls had an early return for fixed-layout that short-
circuited before the tap-zone logic whenever the controls were hidden:
if (isFixedLayout && !isVisible) { showAndScheduleHide(); return; }
Since controls start hidden after the auto-hide delay, the first tap on
an edge zone hit that branch, showed the menu, and returned before
reaching onPrev/onNext. The second tap fell through (isVisible now true)
and finally paged. Removing the special case lets PDF/CBZ use the same
left/right-nav, middle-toggle zone logic as EPUB, so the first tap acts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题现象
根因定位
影响面与风险
验证
注:本次代码修改和PR信息由AI生成