Revision 424:1859afec4f4b

View differences:

src/main/java/cz/agents/alite/vis/Vis.java
203 203
    }
204 204

  
205 205
	private void lookAt(double worldX, double worldY, double zoom) {
206
		zoomFactorBack = zoomFactor = Math.max(initZoomFactor, getMinimalZoomFactor(initCanvasWidth, initCanvasHeight));
206 207
		int offsetX = (int) ((transInvW(initCanvasWidth)/2.0 - worldX));
207 208
        int offsetY = (int) ((transInvH(initCanvasHeight)/2.0 - (invertYAxis ? (-1) : 1) * worldY));
208 209
        
209
        zoomFactorBack = zoomFactor = Math.max(initZoomFactor, getMinimalZoomFactor(initCanvasWidth, initCanvasHeight));
210
        
211 210
        setPosition(offsetX, offsetY, zoom);
212 211
	}
213 212

  

Also available in: Unified diff