mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 00:02:29 +00:00
Avoid irrelevant scroll-action searches in Mac snapshots (#24731)
Check the current pure action name before searching for vertical scroll actions in the same immutable array.
This commit is contained in:
@@ -109,8 +109,8 @@ public enum SnapshotRenderHeuristics {
|
||||
return action != "AXCancel" && action != "AXPick"
|
||||
}
|
||||
if role == "AXScrollArea",
|
||||
(rawActions.contains("AXScrollUpByPage") || rawActions.contains("AXScrollDownByPage")),
|
||||
action == "AXScrollLeftByPage" || action == "AXScrollRightByPage" {
|
||||
action == "AXScrollLeftByPage" || action == "AXScrollRightByPage",
|
||||
(rawActions.contains("AXScrollUpByPage") || rawActions.contains("AXScrollDownByPage")) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user