diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 04708e3..54f9a00 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -450,7 +450,7 @@ Context2d::IsPointInPath(const Arguments &args) { cairo_t *ctx = context->getContext(); double x = args[0]->NumberValue() , y = args[1]->NumberValue(); - return Boolean::New(cairo_in_fill(ctx, x, y)); + return Boolean::New(cairo_in_fill(ctx, x, y) || cairo_in_stroke(ctx, x, y)); } return False(); }