mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05: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
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/fluxth Commit: https://github.com/SerenityOS/serenity/commit/1400a160bc Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
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_inverse_pixel_scaling_ratio = 1.0 / devicePixelRatio();
|
||||
|
||||
verticalScrollBar()->setSingleStep(24);
|
||||
horizontalScrollBar()->setSingleStep(24);
|
||||
}
|
||||
|
||||
WebView::~WebView()
|
||||
|
|
Loading…
Add table
Reference in a new issue