Overlap: fix detecting reflow mode (#10576)

reviewable/pr10582/r1
hius07 1 year ago committed by GitHub
parent 1d4e256c82
commit eef99dafd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -191,7 +191,6 @@ function ReaderPaging:onReadSettings(config)
self:_gotoPage(config:readSetting("last_page") or 1)
self.flipping_zoom_mode = config:readSetting("flipping_zoom_mode") or "page"
self.flipping_scroll_mode = config:isTrue("flipping_scroll_mode")
self.is_reflowed = config:has("kopt_text_wrap") and config:readSetting("kopt_text_wrap") == 1
end
function ReaderPaging:onSaveSettings()

@ -1147,7 +1147,7 @@ function ReaderView:isOverlapAllowed()
if self.ui.paging then
return not self.page_scroll
and (self.ui.paging.zoom_mode ~= "page"
or (self.ui.paging.zoom_mode == "page" and self.ui.paging.is_reflowed))
or (self.ui.paging.zoom_mode == "page" and self.document.configurable.text_wrap == 1))
and not self.ui.paging.zoom_mode:find("height")
else
return self.view_mode ~= "page"

Loading…
Cancel
Save