~ft/zuke

412ccf577fc5e78f0bf8998969ad531d2bb55608 — Sigrid Haflínudóttir 5 months ago 0ad2ce4
make the area around seek bar not do anything when clicked
1 files changed, 5 insertions(+), 3 deletions(-)

M zuke.c
M zuke.c => zuke.c +5 -3
@@ 939,10 939,12 @@ ev:

			n = (m.xy.y - screen->r.min.y)/f->height;

			if(oldbuttons == 0 && !scrolling && ptinrect(m.xy, seekbar)){
			if(oldbuttons == 0 && !scrolling && ptinrect(m.xy, insetrect(seekbar, -3))){
				m.xy.x--;
				double off = getmeta(pcurplaying)->duration * (double)(m.xy.x-seekbar.min.x) / (double)Dx(seekbar);
				seekrel(playercurr, off/1000.0 - byteswritten/Bps);
				if(ptinrect(m.xy, seekbar)){
					double off = getmeta(pcurplaying)->duration * (double)(m.xy.x-seekbar.min.x) / (double)Dx(seekbar);
					seekrel(playercurr, off/1000.0 - byteswritten/Bps);
				}
				break;
			}
			if(oldbuttons == 0 && m.xy.x <= screen->r.min.x+Scrollwidth){