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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user