mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
readerpaging(fix): set the corrent page number on GoBackLink event
This commit is contained in:
@@ -428,8 +428,7 @@ end
|
||||
function ReaderPaging:onRestoreBookLocation(saved_location)
|
||||
if self.view.page_scroll then
|
||||
self.view:restoreViewContext(saved_location)
|
||||
self:_gotoPage(self.view.page_states[#self.view.page_states].page,
|
||||
"scrolling")
|
||||
self:_gotoPage(self.view.page_states[1].page, "scrolling")
|
||||
else
|
||||
-- gotoPage will emit PageUpdate event, which will trigger recalculate
|
||||
-- in ReaderView and resets the view context. So we need to call
|
||||
|
||||
Reference in New Issue
Block a user