prevent scrolling canvas on mobile

This commit is contained in:
dank074 2023-07-20 20:55:35 -05:00
parent baf8b62e43
commit 3e028ef401
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,8 @@ export class FloorplanEditor
canvas.height = height;
canvas.width = width;
canvas.style.touchAction = 'none';
this._renderer = canvas.getContext('2d');
this._image = new Image();

View File

@ -139,7 +139,6 @@ export const FloorplanCanvasView: FC<ColumnProps> = props =>
if(!currentElement) return;
currentElement.appendChild(FloorplanEditor.instance.renderer.canvas);
currentElement.addEventListener('pointerup', onPointerEvent);