Reuse mouse and keyboard listeners when reusing geometry for a view

This commit is contained in:
Antonio Scandurra 2024-01-09 12:37:24 +01:00
parent c9193b586b
commit f55870f378
3 changed files with 131 additions and 66 deletions

View file

@ -285,7 +285,8 @@ impl Element for AnyView {
&& cache_key.text_style == cx.text_style()
&& !cx.window.dirty_views.contains(&self.entity_id())
{
println!("could reuse geometry for view {}", self.entity_id());
cx.reuse_geometry();
return;
}
}