ReaderPaging/Rolling: deduplicate inverse_reading_order code (#8445)

This commit is contained in:
hius07
2021-11-21 19:33:51 +02:00
committed by GitHub
parent c7229d90bc
commit 217937a5bc
5 changed files with 45 additions and 100 deletions

View File

@@ -941,7 +941,7 @@ function ReaderHighlight:onHoldPan(_, ges)
-- by (temporarily) switching to scroll mode when panning to the
-- top left or bottom right corners.
local mirrored_reading = BD.mirroredUILayout()
if self.ui.rolling and self.ui.rolling.inverse_reading_order then
if self.view.inverse_reading_order then
mirrored_reading = not mirrored_reading
end
local is_in_prev_page_corner, is_in_next_page_corner