|
|
@ -448,9 +448,8 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> { |
|
|
|
this.crosshair.style('display', 'none'); |
|
|
|
this.crosshair.style('display', 'none'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
isDoubleClickActive(): boolean |
|
|
|
isDoubleClickActive(): boolean { |
|
|
|
{ |
|
|
|
if(this.options.zoomEvents.mouse.doubleClick === undefined) { |
|
|
|
if (this.options.zoomEvents.mouse['doubleClick'] === undefined) { |
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
return this.options.zoomEvents.mouse.doubleClick.isActive; |
|
|
|
return this.options.zoomEvents.mouse.doubleClick.isActive; |
|
|
@ -462,7 +461,7 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> { |
|
|
|
if(this.isOutOfChart() === true) { |
|
|
|
if(this.isOutOfChart() === true) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.d3.event.type === 'dblclick' && !this.isDoubleClickActive()) { |
|
|
|
if(this.d3.event.type === 'dblclick' && !this.isDoubleClickActive()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// TODO: its not clear, why we use this orientation here. Mb its better to use separate option
|
|
|
|
// TODO: its not clear, why we use this orientation here. Mb its better to use separate option
|
|
|
|