mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibWeb: Plumb wheel events from widget layer to EventHandler
This commit is contained in:
		
							parent
							
								
									53081226e9
								
							
						
					
					
						commit
						ded8c728d2
					
				
					 11 changed files with 32 additions and 0 deletions
				
			
		|  | @ -296,6 +296,12 @@ void InProcessWebView::mouseup_event(GUI::MouseEvent& event) | |||
|     GUI::ScrollableWidget::mouseup_event(event); | ||||
| } | ||||
| 
 | ||||
| void InProcessWebView::mousewheel_event(GUI::MouseEvent& event) | ||||
| { | ||||
|     page().handle_mousewheel(to_content_position(event.position()), event.button(), event.modifiers(), event.wheel_delta()); | ||||
|     GUI::ScrollableWidget::mousewheel_event(event); | ||||
| } | ||||
| 
 | ||||
| void InProcessWebView::keydown_event(GUI::KeyEvent& event) | ||||
| { | ||||
|     bool page_accepted_event = page().handle_keydown(event.key(), event.modifiers(), event.code_point()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling