Skip to content

Commit

Permalink
Tweak to zoom slider shading -- don't shade unless viz zoom level is …
Browse files Browse the repository at this point in the history
…> 1. The calculation will never result in a zoom level of < 1, 1 => whole chromosome. Track hub tracks often have visibility windows > the chromosome length, this was being shaded at zoom level 1.
  • Loading branch information
jrobinso committed Nov 28, 2023
1 parent ff18867 commit aad2d36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/broad/igv/ui/panel/ZoomSliderPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ private void paintVisibilityThresholds(final Graphics2D transGraphics) {
.sorted()
.distinct()
.map(threshold -> this.getReferenceFrame().calculateZoom(0, threshold))
.filter(z -> z > 1)
.toList();

transGraphics.setColor(TRANSPARENT_BLUE);
Expand Down

0 comments on commit aad2d36

Please sign in to comment.