diff options
Diffstat (limited to 'WebCore/page/gtk/EventHandlerGtk.cpp')
-rw-r--r-- | WebCore/page/gtk/EventHandlerGtk.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/page/gtk/EventHandlerGtk.cpp b/WebCore/page/gtk/EventHandlerGtk.cpp index d12cdcc..7051391 100644 --- a/WebCore/page/gtk/EventHandlerGtk.cpp +++ b/WebCore/page/gtk/EventHandlerGtk.cpp @@ -122,4 +122,13 @@ unsigned EventHandler::accessKeyModifiers() return PlatformKeyboardEvent::AltKey; } +// GTK+ must scroll horizontally if the mouse pointer is on top of the +// horizontal scrollbar while scrolling with the wheel; we need to +// add the deltas and ticks here so that this behavior is consistent +// for styled scrollbars. +bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& result) const +{ + return result.scrollbar() && result.scrollbar()->orientation() == HorizontalScrollbar; +} + } |