summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-07 14:22:09 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-07 14:22:09 +0300
commitf58c1facbc01fe0c6689d795f43533a6e85a0041 (patch)
tree12b82f0380820abd05deddc2bc04b9afd7d70783 /src/gui/widgets
parent773b04791f1a918098265c466e5c7816aa8d9a48 (diff)
downloadplus-f58c1facbc01fe0c6689d795f43533a6e85a0041.tar.gz
plus-f58c1facbc01fe0c6689d795f43533a6e85a0041.tar.bz2
plus-f58c1facbc01fe0c6689d795f43533a6e85a0041.tar.xz
plus-f58c1facbc01fe0c6689d795f43533a6e85a0041.zip
invert scrollarea scroll directions on Android.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/scrollarea.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index fdce0ff8c..bcd1af169 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -731,9 +731,13 @@ void ScrollArea::mouseReleased(gcn::MouseEvent& event)
{
if (!event.isConsumed())
{
+#ifdef ANDROID
+ int dx = mClickX - event.getX();
+ int dy = mClickY - event.getY();
+#else
int dx = event.getX() - mClickX;
int dy = event.getY() - mClickY;
-
+#endif
if ((dx < 20 && dx > 0) || (dx > -20 && dx < 0))
dx = 0;