Skip to content

Commit c414e88

Browse files
authored
Fix message list scroll not working when drag gestured is initiated from a message (#671)
* Fix scroll not working when gesture hover message * Revert to initial implementation * One more test * Revert "One more test" This reverts commit daf19f9. * Update CHANGELOG.md
1 parent c06f87e commit c414e88

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
### 🐞 Fixed
77
- Fix showing giphy message in the channel list [#669](https://github.com/GetStream/stream-chat-swiftui/pull/669)
8+
- Fix message list scroll not working when drag gestured is initiated from a message [#671](https://github.com/GetStream/stream-chat-swiftui/pull/671)
89

910
# [4.67.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.67.0)
1011
_November 25, 2024_

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,11 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
121121
handleGestureForMessage(showsMessageActions: true)
122122
}
123123
}
124-
.highPriorityGesture(
125-
LongPressGesture()
126-
.onEnded { _ in
127-
if !message.isDeleted {
128-
handleGestureForMessage(showsMessageActions: true)
129-
}
130-
}
131-
)
124+
.onLongPressGesture(perform: {
125+
if !message.isDeleted {
126+
handleGestureForMessage(showsMessageActions: true)
127+
}
128+
})
132129
.offset(x: min(self.offsetX, maximumHorizontalSwipeDisplacement))
133130
.simultaneousGesture(
134131
DragGesture(

0 commit comments

Comments
 (0)