also mask onScroll to react on ACTION_MOVE only

This commit is contained in:
sonora 2016-12-29 15:09:17 +01:00
parent 2cd80ea61d
commit 5f70f06a98

View file

@ -1108,7 +1108,9 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
if ((e2.getAction() & 255) == MotionEvent.ACTION_MOVE) {
dragToAnimate(e2.getX() + distanceX, e2.getY() + distanceY, e2.getX(), e2.getY(), true);
}
return true;
}