From 20570dc5f151ff042b4211dc3f5ca025aeb0f35a Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sat, 20 Mar 2021 18:17:01 +0500 Subject: [PATCH] Fix fullscreen button visibility condition --- .../GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift b/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift index cf779f64f0..75fe8b3561 100644 --- a/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift +++ b/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift @@ -507,7 +507,7 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode { let dimensions = item.content.dimensions if dimensions.height > 0.0 { - if dimensions.width / dimensions.height >= 1.33 { + if dimensions.width / dimensions.height < 1.33 { self.overlayContentNode.isHidden = true } }