mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	virtual-pointer: Actually use the value passed to axis_discrete
It turns out that scrolling doesn't work unless this value is set somewhere.
This commit is contained in:
		
							parent
							
								
									5bbb44482b
								
							
						
					
					
						commit
						51f8c22f4d
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -195,6 +195,7 @@ static void virtual_pointer_axis_discrete(struct wl_client *client,
 | 
				
			||||||
	pointer->axis_event[pointer->axis].device = wlr_dev;
 | 
						pointer->axis_event[pointer->axis].device = wlr_dev;
 | 
				
			||||||
	pointer->axis_event[pointer->axis].time_msec = time;
 | 
						pointer->axis_event[pointer->axis].time_msec = time;
 | 
				
			||||||
	pointer->axis_event[pointer->axis].orientation = axis;
 | 
						pointer->axis_event[pointer->axis].orientation = axis;
 | 
				
			||||||
 | 
						pointer->axis_event[pointer->axis].delta = wl_fixed_to_double(value);
 | 
				
			||||||
	pointer->axis_event[pointer->axis].delta_discrete = discrete;
 | 
						pointer->axis_event[pointer->axis].delta_discrete = discrete;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue