From 96e715341046b2a74668bca9638db411eed9cb9b Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sun, 29 Dec 2019 19:53:15 -0600 Subject: [PATCH] Back to storing `Accessible` as array in `ScreenReader`, since otherwise the `SceneTree` is thrashed. --- ScreenReader.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ScreenReader.gd b/ScreenReader.gd index 5f1251f..6e40813 100644 --- a/ScreenReader.gd +++ b/ScreenReader.gd @@ -11,6 +11,8 @@ signal swipe_down var Accessible = preload("Accessible.gd") +var accessibles = [] + export var min_swipe_distance = 5 export var tap_execute_interval = 125 @@ -31,7 +33,7 @@ func unfocused(node): func augment_node(node): if node is Control: var accessible = Accessible.new(node) - add_child(accessible) + accessibles.append(accessible) if not node.is_connected("focus_entered", self, "focused"): node.connect("focus_entered", self, "focused", [node]) if not node.is_connected("mouse_entered", self, "click_focused"):