History

Fix stuck click styling when dragging off of a button

Mikayla committed 3 years ago

Commit ff75d161 parent 4d2f5a81 file · +5 −0Browse files

Unified · Split

crates/gpui/src/app/window.rs+5−0
@@ -788,6 +788,11 @@ impl<'a> WindowContext<'a> { · 787 unmodified lines
788788 .contains_point(self.window.mouse_position)
789789 {
790790 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+ }
791796 }
792797 }
793798 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t