diff --git a/crates/bevy_ui/src/update.rs b/crates/bevy_ui/src/update.rs index 49efa56011822f..e0cd62d1320129 100644 --- a/crates/bevy_ui/src/update.rs +++ b/crates/bevy_ui/src/update.rs @@ -122,7 +122,6 @@ pub fn update_scroll_position( .map(|child| query_node.get(*child).unwrap().size().y) .sum(); - // TODO: Fix scroll clamping too soon let max_scroll = (items_height - container_height).max(0.); let dy = match mouse_wheel_event.unit { diff --git a/examples/ui/ui.rs b/examples/ui/ui.rs index ac4331a984769f..945bd1300abb8f 100644 --- a/examples/ui/ui.rs +++ b/examples/ui/ui.rs @@ -84,7 +84,7 @@ fn setup(mut commands: Commands, asset_server: Res) { flex_direction: FlexDirection::Column, align_self: AlignSelf::Stretch, size: Size::height(Val::Percent(50.)), - overflow: Overflow::Scroll, + overflow: Overflow::scroll_y(), ..default() }, background_color: Color::rgb(0.10, 0.10, 0.10).into(),