diff --git a/game/sort/ScrollImageContainer.gd b/game/sort/ScrollImageContainer.gd index 2098c46..ec67c88 100644 --- a/game/sort/ScrollImageContainer.gd +++ b/game/sort/ScrollImageContainer.gd @@ -33,8 +33,14 @@ func _gui_input(event: InputEvent) -> void: if event is InputEventMouseButton: var iemb : InputEventMouseButton = event - mouse_down = iemb.pressed - mouse_pointer == event.device + if iemb.button_index == BUTTON_WHEEL_UP: + _zoom_slider.value += 0.03 + elif iemb.button_index == BUTTON_WHEEL_DOWN: + _zoom_slider.value -= 0.03 + else: + mouse_down = iemb.pressed + mouse_pointer == event.button_index + accept_event() elif event is InputEventMouseMotion: diff --git a/game/sort/Sort.tscn b/game/sort/Sort.tscn index 15bade5..58c01bb 100644 --- a/game/sort/Sort.tscn +++ b/game/sort/Sort.tscn @@ -18,6 +18,7 @@ size_flags_vertical = 3 [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer"] margin_right = 880.0 margin_bottom = 900.0 +mouse_filter = 2 size_flags_horizontal = 3 size_flags_vertical = 3