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

This commit is contained in:
Qingping Hou committed 2016-07-18 01:33:35 -07:00
1 parent 3339ed4e5f
commit f30e487959
2 files changed
+28 -3

No files matched your search

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