diff --git a/Accessible.gd b/Accessible.gd index 630843e..c4243c9 100644 --- a/Accessible.gd +++ b/Accessible.gd @@ -306,6 +306,8 @@ func range_focused(): tokens.append("range") tokens.append("minimum %s" % node.min_value) tokens.append("maximum %s" % node.max_value) + if OS.has_touchscreen_ui_hint(): + tokens.append("Swipe up and down to change.") TTS.speak(tokens.join(": "), false) diff --git a/ScreenReader.gd b/ScreenReader.gd index d6f042c..0592e16 100644 --- a/ScreenReader.gd +++ b/ScreenReader.gd @@ -179,11 +179,21 @@ func swipe_left(): func swipe_up(): - TTS.speak("Swipe up") + var focus = find_focusable_control(get_tree().root) + if focus: + focus = focus.get_focus_owner() + if focus: + if focus is Range: + _press_and_release("ui_right") func swipe_down(): - TTS.speak("Swipe down") + var focus = find_focusable_control(get_tree().root) + if focus: + focus = focus.get_focus_owner() + if focus: + if focus is Range: + _press_and_release("ui_left") var touch_index = null