From c45e40b21ecad4ef1b761cbbbc8b9e7e0d93b646 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Wed, 7 Jun 2023 05:35:05 -0400 Subject: [PATCH] IOS-159: Fix tap location check for dismissing media preview (#1059) --- Mastodon/Scene/MediaPreview/MediaPreviewViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mastodon/Scene/MediaPreview/MediaPreviewViewController.swift b/Mastodon/Scene/MediaPreview/MediaPreviewViewController.swift index d1197ebc8..ca7572bbe 100644 --- a/Mastodon/Scene/MediaPreview/MediaPreviewViewController.swift +++ b/Mastodon/Scene/MediaPreview/MediaPreviewViewController.swift @@ -265,7 +265,7 @@ extension MediaPreviewViewController: MediaPreviewImageViewControllerDelegate { func mediaPreviewImageViewController(_ viewController: MediaPreviewImageViewController, tapGestureRecognizerDidTrigger tapGestureRecognizer: UITapGestureRecognizer) { let location = tapGestureRecognizer.location(in: viewController.previewImageView.imageView) - let isContainsTap = viewController.previewImageView.imageView.frame.contains(location) + let isContainsTap = viewController.previewImageView.imageView.bounds.contains(location) if isContainsTap { self.viewModel.showingChrome.toggle()