mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix reactions positioning on outgoing instant videos
This commit is contained in:
parent
66e2e45403
commit
0ffcbf0b06
@ -3097,7 +3097,11 @@ class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewItemNode
|
|||||||
|
|
||||||
if let reactionButtonsSizeAndApply = reactionButtonsSizeAndApply {
|
if let reactionButtonsSizeAndApply = reactionButtonsSizeAndApply {
|
||||||
let reactionButtonsNode = reactionButtonsSizeAndApply.1(animation)
|
let reactionButtonsNode = reactionButtonsSizeAndApply.1(animation)
|
||||||
let reactionButtonsFrame = CGRect(origin: CGPoint(x: backgroundFrame.minX + (incoming ? layoutConstants.bubble.contentInsets.left : layoutConstants.bubble.contentInsets.right), y: backgroundFrame.maxY + reactionButtonsOffset + 4.0), size: reactionButtonsSizeAndApply.0)
|
var reactionButtonsFrame = CGRect(origin: CGPoint(x: backgroundFrame.minX + (incoming ? layoutConstants.bubble.contentInsets.left : layoutConstants.bubble.contentInsets.right), y: backgroundFrame.maxY + reactionButtonsOffset + 4.0), size: reactionButtonsSizeAndApply.0)
|
||||||
|
if !disablesComments && !incoming {
|
||||||
|
reactionButtonsFrame.origin.x = backgroundFrame.maxX - reactionButtonsSizeAndApply.0.width - layoutConstants.bubble.contentInsets.left
|
||||||
|
}
|
||||||
|
|
||||||
if reactionButtonsNode !== strongSelf.reactionButtonsNode {
|
if reactionButtonsNode !== strongSelf.reactionButtonsNode {
|
||||||
strongSelf.reactionButtonsNode = reactionButtonsNode
|
strongSelf.reactionButtonsNode = reactionButtonsNode
|
||||||
reactionButtonsNode.reactionSelected = { [weak strongSelf] value in
|
reactionButtonsNode.reactionSelected = { [weak strongSelf] value in
|
||||||
|
@ -1316,7 +1316,7 @@ class ChatMessageInteractiveInstantVideoNode: ASDisplayNode {
|
|||||||
return self.view
|
return self.view
|
||||||
}
|
}
|
||||||
|
|
||||||
if let videoNode = self.videoNode, videoNode.frame.contains(point) {
|
if let videoNode = self.videoNode, videoNode.view.frame.contains(point) {
|
||||||
return self.view
|
return self.view
|
||||||
}
|
}
|
||||||
if !self.bounds.contains(point) {
|
if !self.bounds.contains(point) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user