From 86099c57b354fec3bfa489f2b20354cf23b1a76e Mon Sep 17 00:00:00 2001 From: glitch4347 Date: Thu, 7 Dec 2023 14:38:02 +0100 Subject: [PATCH] pointe events --- src/components/markers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/markers.ts b/src/components/markers.ts index be4fdf0..4b8c806 100644 --- a/src/components/markers.ts +++ b/src/components/markers.ts @@ -34,7 +34,8 @@ export class Markers { .attr('x2', linePosition) .attr('y1', 0) // @ts-ignore // TODO: remove ignore but boxParams are protected - .attr('y2', this._state.boxParams.height); + .attr('y2', this._state.boxParams.height) + .attr('pointer-events', 'none'); this._d3Holder.append('circle') .attr('class', 'gap-circle') .attr('stroke', serie.color) @@ -42,7 +43,7 @@ export class Markers { .attr('r', 4) .attr('cx', linePosition) .attr('cy', 5) - .attr('pointer-events', 'all') + .attr('pointer-events', 'none') // TODO: make all on implementation of Events .style('cursor', 'pointer') });