IOS-159: Fix tap location check for dismissing media preview (#1059)

This commit is contained in:
Jed Fox 2023-06-07 05:35:05 -04:00 committed by GitHub
parent 8804432b60
commit c45e40b21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()