diff options
author | Andy Shaw <andy.shaw@digia.com> | 2014-05-11 23:08:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-13 08:04:45 +0200 |
commit | 9ede06936425e90316090263e092c8e39a465513 (patch) | |
tree | 852702d18d86015f45ab7afd6cd01e358a4d9748 | |
parent | 626e0c352765ecbe4211861b00d6ed56d974204e (diff) | |
download | qtwebkit-9ede06936425e90316090263e092c8e39a465513.tar.gz |
Fix scrollbar handles so it follows cursor position when on a page
When a webpage contains a scrollbar as part of an element inside it
then the scrollbar handle should be in sync with the cursor when
the handle is moved.
Task-number: QTBUG-38360
Change-Id: I1f5474ad9b5e8dc232b307f4c5927833577afe1b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
-rw-r--r-- | Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp b/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp index d8c440b90..1e431b9a3 100644 --- a/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp +++ b/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp @@ -204,7 +204,7 @@ int ScrollbarThemeQStyle::trackPosition(ScrollbarThemeClient* scrollbar) { QStyleFacadeOption opt = initSliderStyleOption(scrollbar); QRect track = m_qStyle->scrollBarSubControlRect(opt, QStyleFacade::SC_ScrollBarGroove); - return scrollbar->orientation() == HorizontalScrollbar ? track.x() - scrollbar->x() : track.y() - scrollbar->y(); + return scrollbar->orientation() == HorizontalScrollbar ? track.x() : track.y(); } int ScrollbarThemeQStyle::trackLength(ScrollbarThemeClient* scrollbar) |