mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Fix apple intelligence gesture conflict
This commit is contained in:
parent
a523f70a14
commit
4e9d624877
@ -539,6 +539,7 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
|
|||||||
var customEmojiContainerView: CustomEmojiContainerView?
|
var customEmojiContainerView: CustomEmojiContainerView?
|
||||||
|
|
||||||
let textInputBackgroundNode: ASImageNode
|
let textInputBackgroundNode: ASImageNode
|
||||||
|
var textInputBackgroundTapRecognizer: TouchDownGestureRecognizer?
|
||||||
private var transparentTextInputBackgroundImage: UIImage?
|
private var transparentTextInputBackgroundImage: UIImage?
|
||||||
let actionButtons: ChatTextInputActionButtonsNode
|
let actionButtons: ChatTextInputActionButtonsNode
|
||||||
private let slowModeButton: BoostSlowModeButton
|
private let slowModeButton: BoostSlowModeButton
|
||||||
@ -1089,6 +1090,7 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
self.textInputBackgroundTapRecognizer = recognizer
|
||||||
self.textInputBackgroundNode.isUserInteractionEnabled = true
|
self.textInputBackgroundNode.isUserInteractionEnabled = true
|
||||||
self.textInputBackgroundNode.view.addGestureRecognizer(recognizer)
|
self.textInputBackgroundNode.view.addGestureRecognizer(recognizer)
|
||||||
|
|
||||||
@ -1166,6 +1168,11 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
|
|||||||
textInputNode.isUserInteractionEnabled = !self.sendingTextDisabled
|
textInputNode.isUserInteractionEnabled = !self.sendingTextDisabled
|
||||||
self.textInputNode = textInputNode
|
self.textInputNode = textInputNode
|
||||||
|
|
||||||
|
if let textInputBackgroundTapRecognizer = self.textInputBackgroundTapRecognizer {
|
||||||
|
self.textInputBackgroundTapRecognizer = nil
|
||||||
|
self.textInputBackgroundNode.view.removeGestureRecognizer(textInputBackgroundTapRecognizer)
|
||||||
|
}
|
||||||
|
|
||||||
var accessoryButtonsWidth: CGFloat = 0.0
|
var accessoryButtonsWidth: CGFloat = 0.0
|
||||||
var firstButton = true
|
var firstButton = true
|
||||||
for (_, button) in self.accessoryItemButtons {
|
for (_, button) in self.accessoryItemButtons {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user