mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	PDFViewer: Ignore wheel events when there is no document loaded
This commit is contained in:
		
							parent
							
								
									f808279769
								
							
						
					
					
						commit
						076018b74b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -72,6 +72,9 @@ void PDFViewer::paint_event(GUI::PaintEvent& event) | |||
| 
 | ||||
| void PDFViewer::mousewheel_event(GUI::MouseEvent& event) | ||||
| { | ||||
|     if (!m_document) | ||||
|         return; | ||||
| 
 | ||||
|     bool scrolled_down = event.wheel_delta() > 0; | ||||
| 
 | ||||
|     if (event.ctrl()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling