Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp-M committed Nov 25, 2024
1 parent 548156c commit 2601177
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions masonry/src/passes/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ fn get_target_widget(
if let Some(pointer_pos) = pointer_pos {
// TODO - Apply scale?
let pointer_pos = (pointer_pos.x, pointer_pos.y).into();
let root_widget = root.get_root_widget();
return root_widget
.widget
.find_widget_at_pos(root_widget.ctx, pointer_pos)
return root
.get_root_widget()
.find_widget_at_pos(pointer_pos)
.map(|widget| widget.id());
}

Expand Down

0 comments on commit 2601177

Please sign in to comment.