From 0a89c4b0c863dd3002e85c5b82f4c14a24a71a90 Mon Sep 17 00:00:00 2001 From: Arun Date: Sun, 9 Jan 2022 04:20:25 +0530 Subject: [PATCH] fix: prevent canvas drag while editing text (#4552) --- src/components/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index cb89bac8..6b000702 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -2735,7 +2735,8 @@ class App extends React.Component { (event.button === POINTER_BUTTON.WHEEL || (event.button === POINTER_BUTTON.MAIN && isHoldingSpace) || this.state.viewModeEnabled) - ) + ) || + isTextElement(this.state.editingElement) ) { return false; }