Skip to content

Commit 577eea9

Browse files
committed
Revert "Reduce swipe action updates"
This reverts commit f20bb76.
1 parent 6af7813 commit 577eea9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageListView.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,9 @@ public struct MessageListView<Factory: ViewFactory>: View, KeyboardReadable {
319319
coordinateSpace: .global
320320
)
321321
.onChanged { value in
322-
guard abs(value.translation.width) > abs(value.translation.height) else { return }
323-
guard value.translation.width != messageListSwipe?.horizontalOffset else { return }
324322
messageListSwipe = MessageListSwipe(startLocation: value.startLocation, horizontalOffset: value.translation.width)
325323
}
326324
.onEnded { value in
327-
guard let offset = messageListSwipe?.horizontalOffset, offset != 0 else { return }
328325
messageListSwipe = MessageListSwipe(startLocation: value.startLocation, horizontalOffset: 0)
329326
}
330327
)

0 commit comments

Comments
 (0)