PullDownToRefresh: adjust multiply rate for wheel
This commit is contained in:
		
							parent
							
								
									7db55298a3
								
							
						
					
					
						commit
						8787cb7ad0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -80,7 +80,7 @@ const PullDownToRefresh: Component<{
 | 
			
		|||
  const handleLinkedWheel = (event: WheelEvent) => {
 | 
			
		||||
    const scrollTop = (event.target as HTMLElement).scrollTop;
 | 
			
		||||
    if (scrollTop >= 0 && scrollTop < 1) {
 | 
			
		||||
      ds = -(event.deltaY / window.devicePixelRatio);
 | 
			
		||||
      ds = -(event.deltaY / window.devicePixelRatio / 4);
 | 
			
		||||
      if (released) {
 | 
			
		||||
        released = false;
 | 
			
		||||
        requestAnimationFrame(updatePullDown);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue