mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-30 23:42:42 +01:00 
			
		
		
		
	fix: two finger scroll
This commit is contained in:
		| @@ -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)); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alex
					Alex