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)
|
.contains_point(self.window.mouse_position)
|
||||||
{
|
{
|
||||||
valid_regions.push(mouse_region.clone());
|
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…
Add table
Add a link
Reference in a new issue