Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that the pan zoom direction is not nil #11557

Merged
merged 1 commit into from Mar 17, 2024

Conversation

hugleo
Copy link
Contributor

@hugleo hugleo commented Mar 17, 2024

Fix gif and web files not opening: #11425 (comment)


This change is Reviewable

@Frenzie Frenzie added this to the 2024.04 milestone Mar 17, 2024
@@ -695,7 +695,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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be nil before ReaderZooming is loaded or some such?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably configurable.zoom_direction is never nil for mupdf engine but can be nil for Image view or Picture Document engines, maybe not even requiring this module or such at all.

@Frenzie Frenzie merged commit 424fa9b into koreader:master Mar 17, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants