Skip to content

Commit 29d13cf

Browse files
committed
Revert to original threshold + remove line explicit "width" correction
1 parent 563a7c3 commit 29d13cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/chart/rendering/renderedchart.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,19 @@ bool Marker::bounds(const CoordinateSystem &coordSys,
5151
using enum Gen::ShapeType;
5252
case rectangle:
5353
case area:
54-
return Geom::ConvexQuad{points}.distance(point) < 0.1;
54+
return Geom::ConvexQuad{points}.distance(point)
55+
< 0.01;
5556
case circle: {
5657
auto &&rect = Geom::Rect::Boundary(points);
5758
return Geom::Circle(rect.pos + rect.size / 2.0,
5859
rect.size.x / 2.0)
5960
.distance(point)
60-
< 0.1;
61+
< 0.01;
6162
}
6263
case line:
6364
return lineToQuad(coordSys).distance(
6465
coordSys.convert(point))
65-
< 0.1;
66+
< 0.01;
6667
}
6768
return false;
6869
});

0 commit comments

Comments
 (0)