IOS-159: Fix tap location check for dismissing media preview (#1059)
This commit is contained in:
parent
8804432b60
commit
c45e40b21e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue