mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
WebContent: Switch scroll direction on shift modifier
This commit is contained in:
parent
b0a54518d8
commit
2616b61eee
Notes:
sideshowbarker
2024-07-17 20:01:45 +09:00
Author: https://github.com/can3p Commit: https://github.com/SerenityOS/serenity/commit/2616b61eee5 Pull-request: https://github.com/SerenityOS/serenity/pull/12032 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/alimpfard
@ -117,6 +117,9 @@ bool EventHandler::handle_mousewheel(const Gfx::IntPoint& position, unsigned int
|
||||
if (!layout_root())
|
||||
return false;
|
||||
|
||||
if (modifiers & KeyModifier::Mod_Shift)
|
||||
swap(wheel_delta_x, wheel_delta_y);
|
||||
|
||||
// FIXME: Support wheel events in subframes.
|
||||
|
||||
auto result = layout_root()->hit_test(position, Layout::HitTestType::Exact);
|
||||
|
Loading…
Reference in New Issue
Block a user