mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix message input button hit test
This commit is contained in:
parent
7afdef9dfa
commit
7826d4fa27
@ -644,7 +644,7 @@ public final class MessageInputActionButtonComponent: Component {
|
||||
|
||||
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
var result = super.hitTest(point, with: event)
|
||||
if result == nil {
|
||||
if result == nil, !self.isHidden && self.alpha > 0.0 {
|
||||
for view in self.button.view.subviews {
|
||||
if view.point(inside: self.convert(point, to: view), with: event) {
|
||||
result = self.button.view
|
||||
|
Loading…
x
Reference in New Issue
Block a user