ReaderPaging/Rolling: deduplicate inverse_reading_order code (#8445)

This commit is contained in:
hius07 authored and GitHub committed 2021-11-21 18:33:51 +01:00
1 parent c7229d90bc
commit 217937a5bc
5 files changed
+45 -100

No files matched your search

@@ -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