Skip to content
Snippets Groups Projects

Refactor: Fixed the zoom and navigation bug

Merged Tam Minh Le requested to merge BugFix into dev
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -66,6 +66,10 @@ public class View extends BorderPane implements ChaosGameObserver {
@@ -66,6 +66,10 @@ public class View extends BorderPane implements ChaosGameObserver {
}
}
}
}
 
if (hitCounts.isEmpty()) {
 
return;
 
}
 
Collections.sort(hitCounts);
Collections.sort(hitCounts);
int n = hitCounts.size();
int n = hitCounts.size();
greenThreshold = hitCounts.get((int) (n * 0.33));
greenThreshold = hitCounts.get((int) (n * 0.33));
Loading