From 7da93355998bae99ed5e4bb50f05ff872d6de211 Mon Sep 17 00:00:00 2001 From: dingo Date: Tue, 31 Mar 2026 09:23:46 -0400 Subject: [PATCH] Disable gesture timer accumulation in buttons camera mode Gesture movement tracking and timer cancellation in ScreenDrag were running unconditionally. Gate them behind gesture mode so buttons mode is fully independent of gesture logic. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- Client/origin-client/scenes/game/game_screen.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Client/origin-client/scenes/game/game_screen.gd b/Client/origin-client/scenes/game/game_screen.gd index 6b491bd..a4f4664 100644 --- a/Client/origin-client/scenes/game/game_screen.gd +++ b/Client/origin-client/scenes/game/game_screen.gd @@ -992,9 +992,10 @@ func _unhandled_input(event: InputEvent) -> void: _touch_points[sd.index] = sd.position # Cancel gesture timer if fingers move significantly before the hold activates. - _gesture_move_accum += sd.relative.length() - if _gesture_move_accum > 50.0: - _cam_gesture_timer.stop() + if Settings.touch_camera_mode == "gesture": + _gesture_move_accum += sd.relative.length() + if _gesture_move_accum > 50.0: + _cam_gesture_timer.stop() if _touch_points.size() == 1 and not _was_multi_touch: _touch_drag_total += sd.relative.length()