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;