Skip to content

Commit

Permalink
CAVEPACKER: don't trigger pathfinding if the finger release event bel…
Browse files Browse the repository at this point in the history
…ongs to a motion event

fixes parts of: IOS/CavePacker: scrolling on the map doesn't work #89
  • Loading branch information
mgerhardy committed Mar 21, 2016
1 parent f3af4a4 commit 0689e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cavepacker/client/ui/windows/UIMapWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0689e1a

Please sign in to comment.