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