fix win trackpad, wheel delta
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									62d4e27e3a
								
							
						
					
					
						commit
						3ea7e0aa4b
					
				@ -862,7 +862,7 @@ pub fn handle_mouse_(evt: &MouseEvent, conn: i32) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            #[cfg(windows)]
 | 
					            #[cfg(windows)]
 | 
				
			||||||
            if is_track_pad {
 | 
					            if !is_track_pad {
 | 
				
			||||||
                x *= WHEEL_DELTA as i32;
 | 
					                x *= WHEEL_DELTA as i32;
 | 
				
			||||||
                y *= WHEEL_DELTA as i32;
 | 
					                y *= WHEEL_DELTA as i32;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user