diff --git a/src/main/java/featurecat/lizzie/gui/VariationTree.java b/src/main/java/featurecat/lizzie/gui/VariationTree.java index 36bb3d4d6..c932c9768 100644 --- a/src/main/java/featurecat/lizzie/gui/VariationTree.java +++ b/src/main/java/featurecat/lizzie/gui/VariationTree.java @@ -277,7 +277,7 @@ public Optional draw( int curposy = middleY - YSPACING * (curMove.getData().moveNumber - top.getData().moveNumber); // Go to very top of tree (visible in assigned area) BoardHistoryNode node = top; - while (curposy > posy + YSPACING && node.previous().isPresent()) { + while (curposy > posy - YSPACING && node.previous().isPresent()) { node = node.previous().get(); curposy -= YSPACING; }