Fail hands accessibility reads fast when an app stops answering
This commit is contained in:
@@ -3,7 +3,7 @@ import ApplicationServices
|
||||
|
||||
func point(_ v: Any?, _ info: WindowInfo, _ table: RefTable) throws -> CGPoint {
|
||||
if let ref = v as? String {
|
||||
guard let f = frame(try element(ref, in: info, table)) else {
|
||||
guard let f = try frame(try element(ref, in: info, table)) else {
|
||||
throw ToolError("\(ref) has no position on screen")
|
||||
}
|
||||
return CGPoint(x: f.midX, y: f.midY)
|
||||
|
||||
Reference in New Issue
Block a user