Fix input

This commit is contained in:
Isaac
2025-10-09 00:06:37 +08:00
parent ddf68a0729
commit e3ee0126b2
2 changed files with 7 additions and 1 deletions

View File

@@ -515,7 +515,6 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
self.glassBackgroundContainer = GlassBackgroundContainerView()
self.textInputContainerBackgroundView = GlassBackgroundView(frame: CGRect())
self.textInputContainerBackgroundView.isUserInteractionEnabled = false
self.accessoryPanelContainer = UIView()
self.accessoryPanelContainer.clipsToBounds = true

View File

@@ -368,6 +368,10 @@ public class GlassBackgroundView: UIView {
if let result = nativeView.hitTest(self.convert(point, to: nativeView), with: event) {
return result
}
} else {
if let result = self.contentContainer.hitTest(self.convert(point, to: self.contentContainer), with: event) {
return result
}
}
return nil
}
@@ -535,6 +539,9 @@ public final class GlassBackgroundContainerView: UIView {
guard let result = self.contentView.hitTest(point, with: event) else {
return nil
}
if result === self.contentView {
//return nil
}
return result
}