readerhighlight: fix long-press with Do nothing (#14227)
This commit is contained in:
1 parent
826455961d
commit
d0abd59143
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user