From f10d55a2b5b0ab24a8177283d16514382b39afc9 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sun, 14 Apr 2024 09:18:45 +0300 Subject: [PATCH] readerhighlight: annotations info methods --- frontend/apps/reader/modules/readerhighlight.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index 88427e859..77579c401 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -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