mirror of
https://github.com/bevyengine/bevy
synced 2024-11-27 07:00:18 +00:00
Tweak a comment
This commit is contained in:
parent
b606aa88e1
commit
777d558a5a
1 changed files with 2 additions and 3 deletions
|
@ -227,9 +227,8 @@ fn drag_inventory_items(
|
|||
let Some(cursor_pos) = primary_window.cursor_position() else {
|
||||
return;
|
||||
};
|
||||
// We can't assign exact values with a `PositionType::Absolute` UI node. However, we can use
|
||||
// distance from top of viewport and distance from left of viewport to accomplish the same
|
||||
// thing.
|
||||
// We can use distance from top of viewport and distance from left of viewport to accurately
|
||||
// position a `PositionType::Absolute` node.
|
||||
item_node.left = Val::Px(cursor_pos.x);
|
||||
item_node.top = Val::Px(cursor_pos.y);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue