mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #342 from dpavlin/ZOOM_FIT_TO_CONTENT_WIDTH_PAN
ZOOM_FIT_TO_CONTENT_WIDTH_PAN pan centers page
This commit is contained in:
@@ -1377,6 +1377,12 @@ function UniReader:show(no)
|
||||
-- page top and screen top.
|
||||
self.dest_y = self.offset_y
|
||||
end
|
||||
|
||||
if self.last_globalzoom_mode == self.ZOOM_FIT_TO_CONTENT_WIDTH_PAN then
|
||||
Debug("ZOOM_FIT_TO_CONTENT_WIDTH_PAN - fit page to top")
|
||||
self.dest_y = 0
|
||||
end
|
||||
|
||||
if self.dest_x or self.dest_y then
|
||||
fb.bb:paintRect(0, 0, width, height, 8)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user