ReaderZooming: make auto-crop default be page content (#11438)

This commit is contained in:
hugleo
2024-03-13 20:15:10 -03:00
committed by GitHub
parent ac0483bfce
commit b026f84949
3 changed files with 3 additions and 5 deletions

View File

@@ -21,8 +21,6 @@ function ReaderCropping:onPageCrop(mode)
-- backup original zoom mode as cropping use "page" zoom mode
self.orig_zoom_mode = self.view.zoom_mode
if mode == "auto" then
--- @fixme: This is weird. "auto" crop happens to be the default, yet the default zoom mode/genus is "page", not "content".
--- This effectively yields different results whether auto is enabled by default, or toggled at runtime...
if self.document.configurable.text_wrap ~= 1 then
self:setCropZoomMode(true)
end