From 4fb906baad6a83b44e0f063e68dd5451aabd1216 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Sun, 11 Apr 2021 01:40:46 +0530 Subject: [PATCH] disable detectPositionChange by default --- src/excalidraw-app/index.tsx | 1 - src/packages/excalidraw/index.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx index 51ccd60a8..963e50398 100644 --- a/src/excalidraw-app/index.tsx +++ b/src/excalidraw-app/index.tsx @@ -325,7 +325,6 @@ const ExcalidrawWrapper = () => { langCode={langCode} renderCustomStats={renderCustomStats} detectScroll={false} - detectPositionChange={false} /> {excalidrawAPI && } {errorMessage && ( diff --git a/src/packages/excalidraw/index.tsx b/src/packages/excalidraw/index.tsx index 82580540c..3ca3d30c6 100644 --- a/src/packages/excalidraw/index.tsx +++ b/src/packages/excalidraw/index.tsx @@ -31,7 +31,7 @@ const Excalidraw = (props: ExcalidrawProps) => { renderCustomStats, onPaste, detectScroll = true, - detectPositionChange = true, + detectPositionChange = false, } = props; const canvasActions = props.UIOptions?.canvasActions;