Skip to content

Commit

Permalink
Remove fixes TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Apr 18, 2023
1 parent d94424b commit d9e4e24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crates/bevy_ui/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion examples/ui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
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(),
Expand Down

0 comments on commit d9e4e24

Please sign in to comment.