Browse Source

added d3 event type check

merge-requests/19/head
dv4mp1r3 2 years ago
parent
commit
9db0d99511
  1. 2
      src/index.ts

2
src/index.ts

@ -462,7 +462,7 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
if(this.isOutOfChart() === true) {
return;
}
if (!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

Loading…
Cancel
Save