mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: two finger scroll
This commit is contained in:
parent
0c9edb0c4b
commit
6bf4f65228
@ -27,7 +27,7 @@ waybar::ALabel::ALabel(const Json::Value& config, const std::string format, uint
|
||||
sigc::mem_fun(*this, &ALabel::handleToggle));
|
||||
}
|
||||
if (config_["on-scroll-up"].isString() || config_["on-scroll-down"].isString()) {
|
||||
event_box_.add_events(Gdk::SCROLL_MASK);
|
||||
event_box_.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
|
||||
event_box_.signal_scroll_event().connect(
|
||||
sigc::mem_fun(*this, &ALabel::handleScroll));
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ waybar::modules::Pulseaudio::Pulseaudio(const std::string& id, const Json::Value
|
||||
// events are configured
|
||||
if (!config["on-scroll-up"].isString() &&
|
||||
!config["on-scroll-down"].isString()) {
|
||||
event_box_.add_events(Gdk::SCROLL_MASK);
|
||||
event_box_.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
|
||||
event_box_.signal_scroll_event().connect(
|
||||
sigc::mem_fun(*this, &Pulseaudio::handleScroll));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user