fix(input): let swipes reach scroll containers

Godot ScrollContainer only receives drag gestures when the controls under the finger pass them through. Guest Book cards, House Rules rows, and Settings rows now use PASS, so swiping scrolls while taps, toggles, sliders, and buttons still work. The tutorial board keeps its own input.
This commit is contained in:
Ratdoku Builder committed 2026-12-02 20:32:23 -06:00
1 parent dffdee63a6
commit d679a12e1d
5 files changed
+47 -4

No files matched your search

+5 -1
View File
@@ -100,6 +100,10 @@ func _ready() -> void:
reset_status = UI.label("", 10, Palette.MUTED)
list.add_child(reset_status)
# Let swipes reach the sheet's ScrollContainer even when they start on a
# label, toggle, or button.
UI.pass_scroll_input(list)
game_actions = HBoxContainer.new()
game_actions.add_theme_constant_override("separation", 6)
column.add_child(game_actions)
@@ -283,7 +287,7 @@ func _update_hold_availability() -> void:
return
var enabled := not bool(SaveGame.get_setting("double_tap_place"))
hold_slider.editable = enabled
hold_slider.mouse_filter = Control.MOUSE_FILTER_STOP if enabled else Control.MOUSE_FILTER_IGNORE
hold_slider.mouse_filter = Control.MOUSE_FILTER_PASS if enabled else Control.MOUSE_FILTER_IGNORE
hold_panel.modulate = Color(1, 1, 1, 1.0 if enabled else 0.45)