From ce4b9c94f210615155ac7669d24c8e28eee77492 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 9 Jun 2020 14:29:57 -0500 Subject: [PATCH] Fix null comparison. --- ScreenReader.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ScreenReader.gd b/ScreenReader.gd index d378ead..41f51ce 100644 --- a/ScreenReader.gd +++ b/ScreenReader.gd @@ -269,7 +269,7 @@ func _input(event): touch_position = event.position touch_start_time = OS.get_ticks_msec() touch_stop_time = null - else: + elif touch_position: touch_index = null var relative = event.position - touch_position if relative.length() < min_swipe_distance: