Pass all touch events to the graph editor
This commit is contained in:
@@ -464,14 +464,6 @@ export class GraphEditor extends HTMLElement {
|
|||||||
private fireOnChange() {
|
private fireOnChange() {
|
||||||
this.dispatchEvent(new Event('change'));
|
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<
|
type NodeSelection = d3.Selection<
|
||||||
|
@@ -134,6 +134,7 @@ graph-editor {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
touch-action: none;
|
||||||
}
|
}
|
||||||
graph-editor svg {
|
graph-editor svg {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
Reference in New Issue
Block a user