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

+7 -3
View File
@@ -134,6 +134,10 @@ func refresh() -> void:
for guest in guests:
grid.add_child(_make_card(guest))
# Let a finger drag reach the ScrollContainer even when it starts on a
# card; the card still gets its own press/release for tap detection.
UI.pass_scroll_input(grid)
func _make_card(guest: Dictionary) -> PanelContainer:
var id := str(guest["id"])
@@ -241,9 +245,9 @@ func _on_card_input(event: InputEvent, guest: Dictionary, locked: bool) -> void:
if scrolled:
_suppress_until = now + DRAG_SUPPRESS_MS
# Consume the release either way: a scroll must not fall through to a
# card, and a tap must not reach the detail sheet that is about to open.
accept_event()
# Do not consume the event: the ScrollContainer needs the release to end
# its drag. A real tap is still safe because the detail sheet guards
# Close for 250ms after opening.
if not is_tap:
return