From 0689e1a4f699fcb1289e200e59026b8d3b5501c8 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Mon, 21 Mar 2016 00:14:08 -0700 Subject: [PATCH] CAVEPACKER: don't trigger pathfinding if the finger release event belongs to a motion event fixes parts of: IOS/CavePacker: scrolling on the map doesn't work #89 --- src/cavepacker/client/ui/windows/UIMapWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cavepacker/client/ui/windows/UIMapWindow.cpp b/src/cavepacker/client/ui/windows/UIMapWindow.cpp index ed68203dc..2dcea0d3e 100644 --- a/src/cavepacker/client/ui/windows/UIMapWindow.cpp +++ b/src/cavepacker/client/ui/windows/UIMapWindow.cpp @@ -179,7 +179,7 @@ bool UIMapWindow::getField (int32_t x, int32_t y, int *tx, int *ty) const bool UIMapWindow::onFingerRelease (int64_t finger, uint16_t x, uint16_t y, bool motion) { const bool retVal = IUIMapWindow::onFingerRelease(finger, x, y, motion); - if (!retVal) + if (!retVal && !motion) tryMove(x, y, false); return retVal; }