title_bar: Avoid zoom window on double clicked on title bar right area. (#522)

Close #516
This commit is contained in:
Jason Lee 2024-12-31 18:57:11 +08:00 committed by GitHub
parent 66d9a34844
commit a5427ae662
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -472,6 +472,7 @@ impl Render for StoryWorkspace {
.justify_end()
.px_2()
.gap_2()
.on_mouse_down(MouseButton::Left, |_, cx| cx.stop_propagation())
.child(self.theme_color_picker.clone())
.child(
Button::new("add-panel")