Skip to content

ReaderHighlight: fix accidental tap while long-pressing#14004

Merged
hius07 merged 1 commit into
koreader:masterfrom
hius07:hl-tap
Jul 1, 2025
Merged

ReaderHighlight: fix accidental tap while long-pressing#14004
hius07 merged 1 commit into
koreader:masterfrom
hius07:hl-tap

Conversation

@hius07

@hius07 hius07 commented Jun 30, 2025

Copy link
Copy Markdown
Member

While long-pressing (being a long press or a very long press), the device can detect an accidental tap.
In that case the hold state is lost, and the hold_release event cannot be handled.
If a very long press has been done, the pokeball icon remains on the screen.
Reported in #11514 (comment) and https://www.mobileread.com/forums/showthread.php?t=368795.

The fix: run onHoldRelease() (what a user wanted when long-pressed).


This change is Reviewable

@Frenzie Frenzie requested a review from poire-z June 30, 2025 11:34

@poire-z poire-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not obvious what could be the side effects, but ok.

@hius07 hius07 merged commit ad3dddb into koreader:master Jul 1, 2025
4 checks passed
@hius07 hius07 deleted the hl-tap branch July 1, 2025 18:44
@hius07 hius07 added this to the 2025.06 milestone Jul 1, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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.

2 participants