fix: make overflow button and status area buttons popup on press down instead of on press

leftovers from #568
This commit is contained in:
LazyTanuki 2024-08-15 17:46:07 +02:00 committed by Michael Murphy
parent bd5ac8a5bb
commit b41f30e1a1
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ impl cosmic::Application for Minimize {
.core
.applet
.icon_button(icon)
.on_press(Message::OpenOverflowPopup);
.on_press_down(Message::OpenOverflowPopup);
Some(btn.into())
} else {

View file

@ -252,7 +252,7 @@ impl cosmic::Application for App {
.icon_button_from_handle(icon.clone().symbolic(true)),
_ => self.core.applet.icon_button(menu.icon_name()),
}
.on_press(Msg::TogglePopup(*id)),
.on_press_down(Msg::TogglePopup(*id)),
)
.on_mouse_enter(Msg::Hovered(*id))
.into()