Do not fling if map move is disabled (#378)

This commit is contained in:
Andrey Novikov 2017-07-19 16:26:37 +03:00 committed by Emux
parent d9f7638a25
commit 76d55bb1a0

View File

@ -227,7 +227,8 @@ public class MapEventLayer2 extends AbstractMapEventLayer implements InputListen
vy *= t * t;
vx *= t * t;
}
doFling(vx, vy);
if (mEnableMove)
doFling(vx, vy);
}
if (time - mStartDown > LONG_PRESS_THRESHOLD) {