Skip to content

Commit 1d28099

Browse files
committed
[trello.com/c/4FomJzhO] Fix media message animation
1 parent 782533b commit 1d28099

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Adamant/Modules/Chat/View/Subviews/ChatMedia/ChatMediaCell.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ extension ChatMediaCell: GestureHelper {
132132
guard let text = self?.model.content.comment.string else { return }
133133
self?.copyAction?(text) },
134134
onGestureBegan: { [weak self] in
135-
self?.messageContainerView.animatePressDown() },
136-
onGestureEnded: { [weak self] in self?.messageContainerView.animatePressUp() }
135+
self?.cellContainerView.animatePressDown() },
136+
onGestureEnded: { [weak self] in self?.cellContainerView.animatePressUp() }
137137
)
138138
}
139139

@@ -144,8 +144,8 @@ extension ChatMediaCell: GestureHelper {
144144
guard let id = self?.model.id else { return }
145145
self?.actionHandler(.showFailedMessageAlert(id: id)) },
146146
onGestureBegan: { [weak self] in
147-
self?.messageContainerView.animatePressDown() },
148-
onGestureEnded: { [weak self] in self?.messageContainerView.animatePressUp() }
147+
self?.cellContainerView.animatePressDown() },
148+
onGestureEnded: { [weak self] in self?.cellContainerView.animatePressUp() }
149149
)
150150
}
151151

@@ -158,7 +158,7 @@ extension ChatMediaCell: GestureHelper {
158158
self?.containerMediaView.presentMenuProgrammatically(for: view)
159159
},
160160
onGestureBegan: { [weak self] in
161-
self?.messageContainerView.animatePressDown() },
161+
self?.cellContainerView.animatePressDown() },
162162
onGestureEnded: { [weak self] in self?.messageContainerView.animatePressUp() }
163163
)
164164
}

0 commit comments

Comments
 (0)