viscal

cairo/gtk vi-like timeblocking calendar
git clone git://jb55.com/viscal
Log | Files | Refs | README | LICENSE

commit 4fabc07e568cbf286233be6d5a3bd4d4300756be
parent acdefcfa4d6bb84a602517a44209b0223c77c5a3
Author: William Casarin <bill@casarin.me>
Date:   Tue,  7 Feb 2017 18:27:16 -0800

fix drag regression

Diffstat:
Mcalendar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calendar.c b/calendar.c @@ -692,7 +692,7 @@ event_draw (cairo_t *cr, struct cal *cal, struct event *ev) { if (is_dragging) { /* x += ev->dragx; */ y += ev->dragy; - st = closest_timeblock(cal, y/(double)height); + st = closest_timeblock(cal, y); y = time_to_location(cal->view_start, cal->view_end, st) * height; cal->target->drag_time = st; }