mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix: mouse scroll wheel direction
This commit is contained in:
		
							parent
							
								
									a02146df17
								
							
						
					
					
						commit
						21cfb64f83
					
				@ -16,7 +16,7 @@ class ZoomComponent extends Component {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            window.addEventListener("wheel", event => {
 | 
					            window.addEventListener("wheel", event => {
 | 
				
			||||||
                if (event.ctrlKey) {
 | 
					                if (event.ctrlKey) {
 | 
				
			||||||
                    this.setZoomFactorAndSave(this.getCurrentZoom() + event.deltaY * 0.001);
 | 
					                    this.setZoomFactorAndSave(this.getCurrentZoom() - event.deltaY * 0.001);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user