From b50b8f7b0de0d240e553e3232ba8236bf4fb5fee Mon Sep 17 00:00:00 2001 From: Furkan Demir <48316033+fdemir@users.noreply.github.com> Date: Tue, 23 Mar 2021 16:06:16 +0200 Subject: [PATCH] fix: disallow create text in viewMode on mobile (#3219) --- src/components/App.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index c9326ad164..6996376491 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1881,8 +1881,7 @@ class App extends React.Component { } resetCursor(this.canvas); - - if (!event[KEYS.CTRL_OR_CMD]) { + if (!event[KEYS.CTRL_OR_CMD] && !this.state.viewModeEnabled) { this.startTextEditing({ sceneX, sceneY,