Skip to content

Commit

Permalink
Fix message list scroll not working when drag gestured is initiated f…
Browse files Browse the repository at this point in the history
…rom 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
  • Loading branch information
nuno-vieira authored Nov 29, 2024
1 parent c06f87e commit c414e88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

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

# [4.67.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.67.0)
_November 25, 2024_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,11 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
handleGestureForMessage(showsMessageActions: true)
}
}
.highPriorityGesture(
LongPressGesture()
.onEnded { _ in
if !message.isDeleted {
handleGestureForMessage(showsMessageActions: true)
}
}
)
.onLongPressGesture(perform: {
if !message.isDeleted {
handleGestureForMessage(showsMessageActions: true)
}
})
.offset(x: min(self.offsetX, maximumHorizontalSwipeDisplacement))
.simultaneousGesture(
DragGesture(
Expand Down

0 comments on commit c414e88

Please sign in to comment.