mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	Merge pull request #555 from rom1dep/mouse_scroll_dir
fix: mouse scroll wheel direction for zoom level
This commit is contained in:
		
						commit
						930b8e0ce2
					
				@ -16,7 +16,7 @@ class ZoomComponent extends Component {
 | 
			
		||||
 | 
			
		||||
            window.addEventListener("wheel", event => {
 | 
			
		||||
                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