summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;