From ef4ad58a0ebcfe44611b787ba18503f1c6db9247 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 15 Mar 2012 15:37:36 +0100 Subject: [PATCH] graph: tighten x-axis tooltip hit Make it 10, like the Y-axis. Seems to work well in practice. Signed-off-by: Jens Axboe --- graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.c b/graph.c index 3f2ee6af..7dbfd357 100644 --- a/graph.c +++ b/graph.c @@ -842,7 +842,7 @@ static int xy_match(struct xyvalue *xy, int x, int y) int xdiff = abs(xy->gx - x); int ydiff = abs(xy->gy - y); - return xdiff <= 20 && ydiff <= 10; + return xdiff <= 10 && ydiff <= 10; } const char *graph_find_tooltip(struct graph *g, int x, int y) -- 2.25.1