shithub: zuke

Download patch

ref: eb8ca87074edfbe062cb5dc319ad342fc8918dad
parent: cb6134fd87a05a2cc2b8502d0a883bb93487555a
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Dec 28 19:36:39 EST 2019

scroll bar: fix black rectangle position when close to the end of the playlist

--- a/zuke.c
+++ b/zuke.c
@@ -137,7 +137,7 @@
 		if(scroll < 1)
 			scrollcenter = 0;
 		else
-			scrollcenter = (Dy(screen->r)-Scrollheight/2)*scroll / plnum;
+			scrollcenter = (Dy(screen->r)-Scrollheight*5/4)*scroll / (plnum - scrollsz);
 		r.min.y += scrollcenter + Scrollheight/4;
 		r.max.y = r.min.y + Scrollheight;
 		draw(screen, r, colb, nil, ZP);