mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-24 22:52:32 +02:00 
			
		
		
		
	feat(tray): handle scroll events
This commit is contained in:
		| @@ -70,6 +70,12 @@ class Item : public sigc::trackable { | ||||
|   static void               onMenuDestroyed(Item* self, GObject* old_menu_pointer); | ||||
|   void                      makeMenu(); | ||||
|   bool                      handleClick(GdkEventButton* const& /*ev*/); | ||||
|   bool                      handleScroll(GdkEventScroll* const&); | ||||
|  | ||||
|   // smooth scrolling threshold | ||||
|   gdouble scroll_threshold_ = 0; | ||||
|   gdouble distance_scrolled_x_ = 0; | ||||
|   gdouble distance_scrolled_y_ = 0; | ||||
|  | ||||
|   Glib::RefPtr<Gio::DBus::Proxy> proxy_; | ||||
|   Glib::RefPtr<Gio::Cancellable> cancellable_; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aleksei Bavshin
					Aleksei Bavshin