From 9e88405c44dfde7f12c1498ceab332f1c7702915 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Wed, 30 Nov 2022 16:31:38 +1100 Subject: [PATCH] fix the area for subtitle carousel to scroll --- Session/Conversations/ConversationVC+Interaction.swift | 1 + .../Conversations/Views & Modals/ConversationTitleView.swift | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Session/Conversations/ConversationVC+Interaction.swift b/Session/Conversations/ConversationVC+Interaction.swift index 867493c82..74965f164 100644 --- a/Session/Conversations/ConversationVC+Interaction.swift +++ b/Session/Conversations/ConversationVC+Interaction.swift @@ -22,6 +22,7 @@ extension ConversationVC: GifPickerViewControllerDelegate { // MARK: - Mark as read + func markVisibleMessagesAsRead() { // Note: For the 'tableVisualBottom' we remove the 'Values.mediumSpacing' as that is the distance // the table content appears above the input view diff --git a/Session/Conversations/Views & Modals/ConversationTitleView.swift b/Session/Conversations/Views & Modals/ConversationTitleView.swift index b872bb69a..2116d0f20 100644 --- a/Session/Conversations/Views & Modals/ConversationTitleView.swift +++ b/Session/Conversations/Views & Modals/ConversationTitleView.swift @@ -243,6 +243,9 @@ final class ConversationTitleView: UIView { // MARK: - Interaction override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { - return self.labelCarouselView.scrollView + if self.stackView.frame.contains(point) { + return self.labelCarouselView.scrollView + } + return super.hitTest(point, with: event) } }