Reuse mouse and keyboard listeners when reusing geometry for a view
This commit is contained in:
parent
c9193b586b
commit
f55870f378
3 changed files with 131 additions and 66 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue