Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index cf16660a6b045b4a2b1d4b08e4effbe9b3232974..f8a4fdb2d56f0039f5086460a1ce1076a0c5e0fc 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -2189,6 +2189,12 @@ bool EventHandler::handleWheelEvent(const PlatformWheelEvent& e) |
RETURN_WHEEL_EVENT_HANDLED(); |
} |
+ // Ctrl + scrollwheel is reserved for triggering zoom in/out actions in Chromium. |
+ // When Ctrl is pressed and the event was not canceled by JavaScript code, |
+ // return false to notify the caller that the scrollwheel event was not canceled. |
+ if (e.ctrlKey()) |
+ return false; |
+ |
// We do another check on the frame view because the event handler can run JS which results in the frame getting destroyed. |
view = m_frame->view(); |