commands.add(
new PanCommand((horizontal*-PAN_AMOUNT), (vertical*-PAN_AMOUNT)));
}
if( zoom>0.00000001 ){
double targetZoom = context.calculateZoomLevel(1,previousZoom, fixedPoint, false, zoomAmount != 0);
ZoomCommand zoomCommand = new ZoomCommand(previousZoom);
zoomCommand.setFixedPoint(fixedPoint);
commands.add(zoomCommand);
}
if( commands.size()>0 ){
NavComposite composite = new NavComposite(commands);
context.sendASyncCommand( composite );