From d5c39b72ecd530bcb8a780152d4e7d1d80504ae7 Mon Sep 17 00:00:00 2001 From: Bruno Guidolim Date: Thu, 12 Mar 2020 17:28:56 +0100 Subject: [PATCH] Fix image view tap gesture handler. --- Sources/Views/Cells/MediaMessageCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Views/Cells/MediaMessageCell.swift b/Sources/Views/Cells/MediaMessageCell.swift index 6363e989..4b340558 100644 --- a/Sources/Views/Cells/MediaMessageCell.swift +++ b/Sources/Views/Cells/MediaMessageCell.swift @@ -84,7 +84,7 @@ open class MediaMessageCell: MessageContentCell { /// Handle tap gesture on contentView and its subviews. open override func handleTapGesture(_ gesture: UIGestureRecognizer) { - let touchLocation = gesture.location(in: self) + let touchLocation = gesture.location(in: imageView) switch true { case imageView.frame.contains(touchLocation):