diff --git a/packages/tools/nodeEditor/public/index.html b/packages/tools/nodeEditor/public/index.html index 5e549fc6dcb..749f4e1d65b 100644 --- a/packages/tools/nodeEditor/public/index.html +++ b/packages/tools/nodeEditor/public/index.html @@ -3,7 +3,7 @@ Babylon.js Node Material Editor - + @@ -17,7 +17,11 @@ height: 100%; padding: 0; margin: 0; + -ms-touch-action: none; + touch-action: none; overflow: hidden; + overscroll-behavior-x: none; + overscroll-behavior-y: none; } #host-element { @@ -28,6 +32,7 @@ overflow: hidden; } + diff --git a/packages/tools/nodeEditor/src/diagram/graphCanvas.tsx b/packages/tools/nodeEditor/src/diagram/graphCanvas.tsx index 83aee94aac7..a850d84d37f 100644 --- a/packages/tools/nodeEditor/src/diagram/graphCanvas.tsx +++ b/packages/tools/nodeEditor/src/diagram/graphCanvas.tsx @@ -766,8 +766,6 @@ export class GraphCanvasComponent extends React.Component scrollLeftMax) { + return evt.preventDefault(); + } + } + resizeColumns(evt: React.PointerEvent, forLeft = true) { if (!this._moveInProgress) { return;