Skip to content

Commit

Permalink
Corrected copy-paste mistake in hit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 9, 2018
1 parent 61323e7 commit d1c780e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ fn do_hit_test_and_call_callbacks<T: Layout>(
hit_dom_node: ui_state_cache[window_id.id].tag_ids_to_node_ids[&item.tag.0],
ui_state: &ui_state_cache[window_id.id],
hit_test_result: &hit_test_results,
cursor_relative_to_item: (item.point_in_viewport.x, item.point_in_viewport.y),
cursor_relative_to_item: (item.point_relative_to_item.x, item.point_relative_to_item.y),
cursor_in_viewport: (item.point_in_viewport.x, item.point_in_viewport.y),
};

Expand Down

0 comments on commit d1c780e

Please sign in to comment.