Ladybird: Set singleStep for scroll bars in WebView

Sets singleStep to 24px, this allows you to scroll using your mouse
scroll wheel :^)
This commit is contained in:
Thitat Auareesuksakul 2022-07-09 00:58:05 +07:00 committed by Andrew Kaster
parent d89fbf3aa0
commit 1400a160bc
Notes: sideshowbarker 2024-07-17 03:45:48 +09:00

View file

@ -316,6 +316,9 @@ WebView::WebView()
m_page_client->set_viewport_rect({ 0, 0, 800, 600 });
m_inverse_pixel_scaling_ratio = 1.0 / devicePixelRatio();
verticalScrollBar()->setSingleStep(24);
horizontalScrollBar()->setSingleStep(24);
}
WebView::~WebView()