mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	Ladybird/AppKit: Fix scrolling with high dpi
This commit is contained in:
		
							parent
							
								
									0574c0e474
								
							
						
					
					
						commit
						6f8ceb49c2
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -38,9 +38,7 @@ WebViewBridge::WebViewBridge(Vector<Gfx::IntRect> screen_rects, float device_pix | |||
|     create_client(WebView::EnableCallgrindProfiling::No); | ||||
| 
 | ||||
|     on_scroll_by_delta = [this](auto x_delta, auto y_delta) { | ||||
|         // FIXME: This currently isn't reached because we do not yet propagate mouse wheel events to WebContent.
 | ||||
|         //        When that is implemented, make sure our mutations to the viewport position here are correct.
 | ||||
|         auto position = m_viewport_rect.location(); | ||||
|         auto position = to_widget_position(m_viewport_rect.location()); | ||||
|         position.set_x(position.x() + x_delta); | ||||
|         position.set_y(position.y() + y_delta); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Bastiaan van der Plaat
						Bastiaan van der Plaat