Skip to content

Commit e3b0c63

Browse files
authored
fix: invert zoomability condition to allow zoom on still photos (#643)
Fixes typo from c392a07 Refs: #642
1 parent 8acc413 commit e3b0c63

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Fixed zoom in photos ([#642])
810

911
## [1.5.0] - 2025-09-08
1012
### Added
@@ -162,6 +164,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
162164
[#565]: https://github.com/FossifyOrg/Gallery/issues/565
163165
[#567]: https://github.com/FossifyOrg/Gallery/issues/567
164166
[#621]: https://github.com/FossifyOrg/Gallery/issues/621
167+
[#642]: https://github.com/FossifyOrg/Gallery/issues/642
165168

166169
[Unreleased]: https://github.com/FossifyOrg/Gallery/compare/1.5.0...HEAD
167170
[1.5.0]: https://github.com/FossifyOrg/Gallery/compare/1.4.2...1.5.0

app/src/main/kotlin/org/fossify/gallery/fragments/PhotoFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ class PhotoFragment : ViewPagerFragment() {
349349
super.setMenuVisibility(menuVisible)
350350
mIsFragmentVisible = menuVisible
351351
if (mWasInit) {
352-
val isAnimatedContent =
353-
mMedium.isGIF() || mMedium.isApng() || mMedium.isAvif() || mMedium.isWebP()
354-
if (isAnimatedContent) {
352+
val isNotAnimatedContent =
353+
!mMedium.isGIF() && !mMedium.isApng() && !mMedium.isAvif() && !mMedium.isWebP()
354+
if (isNotAnimatedContent) {
355355
photoFragmentVisibilityChanged(menuVisible)
356356
}
357357
}

0 commit comments

Comments
 (0)