diff --git a/main.lua b/main.lua index ca277da..b0907a0 100644 --- a/main.lua +++ b/main.lua @@ -909,8 +909,11 @@ function Bookhoard:syncToProgress(progress, percentage) elseif progress and progress:match("^/body/") then self.ui:handleEvent(Event:new("GotoXPointer", progress)) elseif percentage then - self.ui.document:gotoPercent(percentage * 100) - self.ui:handleEvent(Event:new("UpdatePos")) + -- Navigation goes through events (ReaderRolling/ReaderPaging both + -- implement onGotoPercent and refresh the view themselves). Calling + -- document:gotoPercent directly crashed KOReader — no such method + -- exists on documents. + self.ui:handleEvent(Event:new("GotoPercent", percentage * 100)) end end