diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-07 14:22:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-07 14:22:09 +0300 |
commit | f58c1facbc01fe0c6689d795f43533a6e85a0041 (patch) | |
tree | 12b82f0380820abd05deddc2bc04b9afd7d70783 /src | |
parent | 773b04791f1a918098265c466e5c7816aa8d9a48 (diff) | |
download | manaverse-f58c1facbc01fe0c6689d795f43533a6e85a0041.tar.gz manaverse-f58c1facbc01fe0c6689d795f43533a6e85a0041.tar.bz2 manaverse-f58c1facbc01fe0c6689d795f43533a6e85a0041.tar.xz manaverse-f58c1facbc01fe0c6689d795f43533a6e85a0041.zip |
invert scrollarea scroll directions on Android.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 6 |
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; |