feat: toggle popups on press down

This commit is contained in:
lazytanuki 2024-08-13 19:03:34 +02:00 committed by GitHub
parent af658aa14d
commit e51ca81f7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View file

@ -646,7 +646,7 @@ impl cosmic::Application for Audio {
.core
.applet
.icon_button(self.output_icon_name())
.on_press(Message::TogglePopup);
.on_press_down(Message::TogglePopup);
let btn = crate::mouse_area::MouseArea::new(btn).on_mouse_wheel(|delta| {
let change = match delta {
iced::mouse::ScrollDelta::Lines { x, y } => (x + y) * 5.,