Fix stuck click styling when dragging off of a button

This commit is contained in:
Mikayla 2023-08-23 18:22:48 -07:00
parent 4d2f5a8e04
commit ff75d1663b
No known key found for this signature in database

View file

@ -788,6 +788,11 @@ impl<'a> WindowContext<'a> {
.contains_point(self.window.mouse_position)
{
valid_regions.push(mouse_region.clone());
} else {
// Let the view know that it hasn't been clicked anymore
if mouse_region.notify_on_click {
notified_views.insert(mouse_region.id().view_id());
}
}
}
}