From d0abd5914347a2476a191504cd1ca33a7b7deb85 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Tue, 26 Aug 2025 18:18:53 +0300 Subject: [PATCH] readerhighlight: fix long-press with Do nothing (#14227) --- frontend/apps/reader/modules/readerhighlight.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index ad8298871..3e38fdf0e 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -1695,7 +1695,10 @@ function ReaderHighlight:onHold(arg, ges) end -- otherwise, we must be holding on text - if self.view.highlight.disabled then return false end -- Long-press action "Do nothing" checked + if self.view.highlight.disabled then -- Long-press action "Do nothing" checked + self.hold_pos = nil + return false + end local ok, word = pcall(self.ui.document.getWordFromPosition, self.ui.document, self.hold_pos) if ok and word then logger.dbg("selected word:", word)