Browse Source

Merge pull request 'hotfix: call mouseOver and mouseMove to render crosshair on init and zoomin' (#10) from hidden-crosshair-on-first-render-and-zoomin into main

Reviewed-on: #10
pull/14/head
vargburz 1 year ago
parent
commit
f100af0ee8
  1. 6
      src/index.ts

6
src/index.ts

@ -321,6 +321,7 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
}
onMouseOver(): void {
this.onMouseMove();
this.crosshair.style('display', null);
this.crosshair.selectAll('.crosshair-circle')
.style('display', null);
@ -335,6 +336,11 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
return this.options.doubleClickEvent.isActive;
}
protected onBrushEnd(): void {
super.onBrushEnd();
this.onMouseOver();
}
// methods below rewrite s, (move more methods here)
protected zoomOut(): void {
if(d3.event.type === 'dblclick' && !this.isDoubleClickActive()) {

Loading…
Cancel
Save