mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 10:40:54 +00:00
Fix stuck click styling when dragging off of a button
This commit is contained in:
parent
4d2f5a8e04
commit
ff75d1663b
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue