Browse Source

pointe events

pull/23/head
glitch4347 12 months ago
parent
commit
86099c57b3
  1. 5
      src/components/markers.ts

5
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')
});

Loading…
Cancel
Save