This commit is contained in:
agra
2026-04-22 22:42:53 +03:00
parent 2113537078
commit 7e0b9a6330
17 changed files with 552 additions and 19 deletions

View File

@@ -267,22 +267,8 @@ public class KeyboardPlugin: NSObject, NativePlugin {
}
private func setupPanGesture() {
var targetView: UIView?
if let window = UIApplication.shared.delegate?.window ?? nil {
targetView = window.rootViewController?.view ?? window
} else {
for scene in UIApplication.shared.connectedScenes {
if let ws = scene as? UIWindowScene {
for window in ws.windows where window.isKeyWindow {
targetView = window.rootViewController?.view ?? window
break
}
}
}
}
guard let view = targetView else { return }
guard let window = UxWindow.keyWindow else { return }
let view: UIView = window.rootViewController?.view ?? window
let pan = UIPanGestureRecognizer(target: self, action: #selector(handlePan))
pan.cancelsTouchesInView = false