We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5ae0e commit 7e4ca1dCopy full SHA for 7e4ca1d
src/main/java/org/openmolecules/fx/viewer3d/V3DScene.java
@@ -428,8 +428,8 @@ public void optimizeView(V3DRotatableGroup group) {
428
if (detail != null) {
429
if (detail.isAtom() || detail.isBond()) {
430
Point3D p = node2.localToScene(0.0, 0.0, 0.0);
431
- cameraZ = Math.min(cameraZ, p.getZ() - tanH * Math.abs(p.getX()-cog.getX()));
432
- cameraZ = Math.min(cameraZ, p.getZ() - tanV * Math.abs(p.getY()-cog.getY()));
+ cameraZ = Math.min(cameraZ, p.getZ() - Math.max(5, tanH * Math.abs(p.getX()-cog.getX())));
+ cameraZ = Math.min(cameraZ, p.getZ() - Math.max(5, tanV * Math.abs(p.getY()-cog.getY())));
433
}
434
435
0 commit comments