readerhighlight: annotations info methods

reviewable/pr11563/r21
hius07 3 weeks ago committed by GitHub
parent b7443bb455
commit f10d55a2b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -708,8 +708,7 @@ function ReaderHighlight:onTap(_, ges)
-- ReaderHighlight:clear can only return true if self.hold_pos was set anyway.
local cleared = self.hold_pos and self:clear()
-- We only care about potential taps on existing highlights, not on taps that closed a highlight menu.
if not cleared and ges then
if #self.ui.annotation.annotations == 0 then return end
if not cleared and ges and self.ui.annotation:hasAnnotations() then
if self.ui.paging then
return self:onTapPageSavedHighlight(ges)
else

Loading…
Cancel
Save