From 9db0d995119ac086ffea0f2e98ee18b895a38694 Mon Sep 17 00:00:00 2001 From: dv4mp1r3 Date: Fri, 11 Mar 2022 19:59:44 +0300 Subject: [PATCH] added d3 event type check --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 046075b..2db6de2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -462,7 +462,7 @@ export class LinePod extends ChartwerkPod { 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