readerpaging(fix): set the corrent page number on GoBackLink event

This commit is contained in:
Qingping Hou
2016-07-17 23:51:58 -07:00
parent 3339ed4e5f
commit f30e487959
2 changed files with 28 additions and 3 deletions

View File

@@ -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