From df00e43b84a0815a8142ef54225beb6bdd5a3701 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Sat, 18 Mar 2023 14:29:11 +0200 Subject: [PATCH] Do not allow the ValueSlider's global shortcut to affect it if it's hidden --- src/UI/Nodes/ValueSlider.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Nodes/ValueSlider.gd b/src/UI/Nodes/ValueSlider.gd index 8c1b6cac3..4ee7d85ca 100644 --- a/src/UI/Nodes/ValueSlider.gd +++ b/src/UI/Nodes/ValueSlider.gd @@ -62,7 +62,7 @@ func _notification(what: int) -> void: func _input(event: InputEvent) -> void: - if not editable: + if not editable or not is_visible_in_tree(): return # Hardcode Control + Wheel as a global shortcut, if is_global is true # In Godot 4.x this will change into two is_action() checks for incrementing and decrementing