MapEventLayer: avoid unnecessary Move events, #76

This commit is contained in:
Emux 2016-07-19 11:03:12 +03:00
parent a8b341763e
commit c8ff7a9e07

View File

@ -270,8 +270,8 @@ public class MapEventLayer extends Layer implements InputListener, GestureListen
mViewport.moveMap(mx, my);
mTracker.update(x1, y1, e.getTime());
mMap.updateMap(true);
mMap.viewport().getMapPosition(mapPosition);
mMap.events.fire(Map.MOVE_EVENT, mapPosition);
if (mMap.viewport().getMapPosition(mapPosition))
mMap.events.fire(Map.MOVE_EVENT, mapPosition);
return;
}
mStartMove = -1;