commit 9344e358150335321dd8a975f7e04709f2157000 parent ad3606cd957c74f72cef69d140c4edcb8376ced0 Author: William Casarin <jb55@jb55.com> Date: Wed, 15 Aug 2018 22:15:58 -0700 drag events from an offset this hash a more natural dragging feel Diffstat:
M | viscal.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/viscal.c b/viscal.c @@ -571,7 +571,8 @@ on_motion(GtkWidget *widget, GdkEventMotion *ev, gpointer user_data) { if (cal->target) { dragging_event = 1; cal->target->dragx = px - cal->target->x; - cal->target->dragy = py - cal->target->y - cal->y; + cal->target->dragy = + cal->target->dragy_off + py - cal->target->y - cal->y; } }