From 76decaf203c589fa8535432b4bfbe1efce129e1c Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Tue, 26 Mar 2024 19:34:17 +0100 Subject: [PATCH] Pass all touch events to the graph editor --- src/editor/GraphEditor.ts | 8 -------- src/style.css | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/editor/GraphEditor.ts b/src/editor/GraphEditor.ts index 3c9cecd..be2c6c4 100644 --- a/src/editor/GraphEditor.ts +++ b/src/editor/GraphEditor.ts @@ -464,14 +464,6 @@ export class GraphEditor extends HTMLElement { private fireOnChange() { this.dispatchEvent(new Event('change')); } - - override get clientWidth(): number { - return this.children[0].clientWidth; - } - - override get clientHeight(): number { - return this.children[0].clientHeight; - } } type NodeSelection = d3.Selection< diff --git a/src/style.css b/src/style.css index 5c7f33f..642c6a0 100644 --- a/src/style.css +++ b/src/style.css @@ -134,6 +134,7 @@ graph-editor { flex-grow: 1; display: flex; flex-direction: column; + touch-action: none; } graph-editor svg { flex-grow: 1;