Skip to content

Commit 0689e1a

Browse files
committed
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
1 parent f3af4a4 commit 0689e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cavepacker/client/ui/windows/UIMapWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool UIMapWindow::getField (int32_t x, int32_t y, int *tx, int *ty) const
179179
bool UIMapWindow::onFingerRelease (int64_t finger, uint16_t x, uint16_t y, bool motion)
180180
{
181181
const bool retVal = IUIMapWindow::onFingerRelease(finger, x, y, motion);
182-
if (!retVal)
182+
if (!retVal && !motion)
183183
tryMove(x, y, false);
184184
return retVal;
185185
}

0 commit comments

Comments
 (0)