mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	change audio scroll bound
Change default behavior from 0% - 99% to 0% - 100%.
This commit is contained in:
		@@ -86,7 +86,7 @@ bool waybar::modules::Pulseaudio::handleScroll(GdkEventScroll *e) {
 | 
			
		||||
    change = round(config_["scroll-step"].asDouble() * volume_tick);
 | 
			
		||||
  }
 | 
			
		||||
  if (dir == SCROLL_DIR::UP) {
 | 
			
		||||
    if (volume_ + 1 < 100) {
 | 
			
		||||
    if (volume_ + 1 <= 100) {
 | 
			
		||||
      pa_cvolume_inc(&pa_volume, change);
 | 
			
		||||
    }
 | 
			
		||||
  } else if (dir == SCROLL_DIR::DOWN) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user