fix issue where empty pane is created

This commit is contained in:
K Simmons
2022-10-24 23:32:00 -07:00
parent cfde3e348c
commit d7b8a189e4
3 changed files with 25 additions and 21 deletions
+2 -2
View File
@@ -391,7 +391,7 @@ impl Presenter {
//Ensure that hover entrance events aren't sent twice
if self.hovered_region_ids.insert(region.id()) {
valid_regions.push(region.clone());
if region.notify_on_hover {
if region.notify_on_hover || region.notify_on_move {
notified_views.insert(region.id().view_id());
}
}
@@ -399,7 +399,7 @@ impl Presenter {
// Ensure that hover exit events aren't sent twice
if self.hovered_region_ids.remove(&region.id()) {
valid_regions.push(region.clone());
if region.notify_on_hover {
if region.notify_on_hover || region.notify_on_move {
notified_views.insert(region.id().view_id());
}
}