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:
1 parent
dffdee63a6
commit
d679a12e1d
5 files changed
+47
-4
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user