mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	When scrolling in copy mode with the mouse, scroll screen rather than
moving cursor. This change from Ailin Nemui, alternative to a change from Stephen Hicks.
This commit is contained in:
		@@ -832,10 +832,10 @@ window_copy_mouse(
 | 
			
		||||
	if (m->event == MOUSE_EVENT_WHEEL) {
 | 
			
		||||
		if (m->wheel == MOUSE_WHEEL_UP) {
 | 
			
		||||
			for (i = 0; i < 5; i++)
 | 
			
		||||
				window_copy_cursor_up(wp, 0);
 | 
			
		||||
				window_copy_cursor_up(wp, 1);
 | 
			
		||||
		} else if (m->wheel == MOUSE_WHEEL_DOWN) {
 | 
			
		||||
			for (i = 0; i < 5; i++)
 | 
			
		||||
				window_copy_cursor_down(wp, 0);
 | 
			
		||||
				window_copy_cursor_down(wp, 1);
 | 
			
		||||
			if (data->oy == 0)
 | 
			
		||||
				goto reset_mode;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user