Update readerview.lua

reviewable/pr11563/r11
hius07 1 month ago committed by GitHub
parent d2e89cb446
commit 0ffc497bff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -658,7 +658,8 @@ function ReaderView:recalculate()
-- start from right of page_area
self.visible_area.x = self.page_area.x + self.page_area.w - self.visible_area.w
end
if self.document.configurable.zoom_direction >= 2 and self.document.configurable.zoom_direction <= 5 then -- zoom_bottom_to_top
-- Check if we are in zoom_bottom_to_top
if self.document.configurable.zoom_direction and self.document.configurable.zoom_direction >= 2 and self.document.configurable.zoom_direction <= 5 then
-- starts from bottom of page_area
self.visible_area.y = self.page_area.y + self.page_area.h - self.visible_area.h
else

Loading…
Cancel
Save