Fix indentation in _unhandled_input touch guard comment/condition
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:
@@ -822,9 +822,9 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||
var delta := mm.position - _last_mouse
|
||||
_last_mouse = mm.position
|
||||
# On some mobile browsers, pinch emits synthetic mouse-motion/left-drag
|
||||
# alongside touch/gesture events. Ignore mouse-orbit while touch is active
|
||||
# (or was recently multi-touch) to prevent accidental camera spin.
|
||||
if mm.button_mask & MOUSE_BUTTON_MASK_LEFT and _touch_points.is_empty() and not _was_multi_touch:
|
||||
# alongside touch/gesture events. Ignore mouse-orbit while touch is active
|
||||
# (or was recently multi-touch) to prevent accidental camera spin.
|
||||
if mm.button_mask & MOUSE_BUTTON_MASK_LEFT and _touch_points.is_empty() and not _was_multi_touch:
|
||||
if delta.length() > 2.0:
|
||||
_drag_active = true
|
||||
_hold_timer.stop()
|
||||
|
||||
Reference in New Issue
Block a user