diff --git a/src/core/mark/rule.ts b/src/core/mark/rule.ts index 836def76..a47f5bd2 100644 --- a/src/core/mark/rule.ts +++ b/src/core/mark/rule.ts @@ -142,7 +142,7 @@ export function drawRule(HGC: import('@higlass/types').HGC, trackInfo: any, tile 0.5 // alignment of the line to draw, (0 = inner, 0.5 = middle, 1 = outter) ); - const midR = trackOuterRadius - ((rowPosition + y) / trackHeight) * trackRingSize; + const midR = trackOuterRadius - ((rowPosition + rowHeight - y) / trackHeight) * trackRingSize; const farR = midR + strokeWidth / 2.0; const nearR = midR - strokeWidth / 2.0;