add page status to readerrolling for better page view_mode support

* now when rendering in page view mode, we only keep track of page
number instead of pos inside document. Because using pos inside
document for page view mode is really a bad idea and will lead to
many unsovlabe bugs...
This commit is contained in:
Qingping Hou
2012-12-22 13:27:46 +08:00
parent 5ab98420bd
commit 93abd2fee7
5 changed files with 122 additions and 35 deletions

View File

@@ -92,6 +92,9 @@ function ReaderFont:onShowFontMenu()
return true
end
--[[
UpdatePos event is used to tell ReaderRolling to update pos.
--]]
function ReaderFont:onChangeSize(direction)
local delta = 1
if direction == "decrease" then