mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
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:
parent
d89fbf3aa0
commit
1400a160bc
1 changed files with 3 additions and 0 deletions
|
@ -316,6 +316,9 @@ WebView::WebView()
|
||||||
m_page_client->set_viewport_rect({ 0, 0, 800, 600 });
|
m_page_client->set_viewport_rect({ 0, 0, 800, 600 });
|
||||||
|
|
||||||
m_inverse_pixel_scaling_ratio = 1.0 / devicePixelRatio();
|
m_inverse_pixel_scaling_ratio = 1.0 / devicePixelRatio();
|
||||||
|
|
||||||
|
verticalScrollBar()->setSingleStep(24);
|
||||||
|
horizontalScrollBar()->setSingleStep(24);
|
||||||
}
|
}
|
||||||
|
|
||||||
WebView::~WebView()
|
WebView::~WebView()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue