ReaderRolling: fix marker sometimes not removed

Noticed when jump to a footnote and quickly going back.
This commit is contained in:
poire-z committed 2022-06-25 19:53:50 +02:00
1 parent b7a27a3db3
commit 38bd2b4c46
1 file changed
+1
@@ -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