Unified · Split
| @@ -788,6 +788,11 @@ impl<'a> WindowContext<'a> { · 787 unmodified lines | |||
| 788 | .contains_point(self.window.mouse_position) | 788 | .contains_point(self.window.mouse_position) |
| 789 | { | 789 | { |
| 790 | valid_regions.push(mouse_region.clone()); | 790 | valid_regions.push(mouse_region.clone()); |
| 791 | } else { | ||
| 792 | // Let the view know that it hasn't been clicked anymore | ||
| 793 | if mouse_region.notify_on_click { | ||
| 794 | notified_views.insert(mouse_region.id().view_id()); | ||
| 795 | } | ||
| 791 | } | 796 | } |
| 792 | } | 797 | } |
| 793 | } | 798 | } |