From 38bd2b4c46424eaf80d214332eed6c123ee2e298 Mon Sep 17 00:00:00 2001 From: poire-z Date: Thu, 23 Jun 2022 13:54:06 +0200 Subject: [PATCH] ReaderRolling: fix marker sometimes not removed Noticed when jump to a footnote and quickly going back. --- frontend/apps/reader/modules/readerrolling.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/apps/reader/modules/readerrolling.lua b/frontend/apps/reader/modules/readerrolling.lua index e16abc1c4..f0b61baa5 100644 --- a/frontend/apps/reader/modules/readerrolling.lua +++ b/frontend/apps/reader/modules/readerrolling.lua @@ -670,6 +670,7 @@ function ReaderRolling:onGotoXPointer(xp, marker_xp) end if self.unmark_func then -- execute scheduled unmark now to clean previous marker + UIManager:unschedule(self.unmark_func) self.unmark_func() self.unmark_func = nil end