From d1c780e53e2d182d5757aa3abed1332668fd5f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 9 Nov 2018 04:54:08 +0100 Subject: [PATCH] Corrected copy-paste mistake in hit testing --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index fed91e2e5..1a6442e9e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -713,7 +713,7 @@ fn do_hit_test_and_call_callbacks( 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), };