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 <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-31 09:23:46 -04:00
co-authored by Claude Happy
parent 431ae6fc2c
commit 7da9335599
@@ -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()