diff options
Diffstat (limited to 'WebCore/page/chromium/EventHandlerChromium.cpp')
-rw-r--r-- | WebCore/page/chromium/EventHandlerChromium.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/page/chromium/EventHandlerChromium.cpp b/WebCore/page/chromium/EventHandlerChromium.cpp index 467f94e..ac76a29 100644 --- a/WebCore/page/chromium/EventHandlerChromium.cpp +++ b/WebCore/page/chromium/EventHandlerChromium.cpp @@ -154,4 +154,14 @@ unsigned EventHandler::accessKeyModifiers() #endif } +#if PLATFORM(LINUX) +// GTK+ must scroll horizontally if the mouse pointer is on top of the +// horizontal scrollbar while scrolling with the wheel. +// This code comes from gtk/EventHandlerGtk.cpp. +bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& result) const +{ + return result.scrollbar() && result.scrollbar()->orientation() == HorizontalScrollbar; +} +#endif + } // namespace WebCore |