continuous: do not limit visible area to page area (#5885)

in scroll_mode allow visible area to be larger than one page

allows proper scrolling om tall aspect ratios. Fixes #5876
This commit is contained in:
yparitcher
2020-02-20 17:00:32 -05:00
committed by GitHub
parent 69f4144dc1
commit 7b1ae4e486
3 changed files with 10 additions and 8 deletions

View File

@@ -575,8 +575,10 @@ function ReaderView:recalculate()
self.visible_area.x = self.page_area.x + self.page_area.w - self.visible_area.w
self.visible_area.y = self.page_area.y
end
-- and recalculate it according to page size
self.visible_area:offsetWithin(self.page_area, 0, 0)
if not self.page_scroll then
-- and recalculate it according to page size
self.visible_area:offsetWithin(self.page_area, 0, 0)
end
-- clear dim area
self.dim_area.w = 0
self.dim_area.h = 0