Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: disallow create text in viewMode on mobile (#3219)

Furkan Demirb50b8f7b0de0
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<ExcalidrawProps, AppState> {
}
resetCursor(this.canvas);
-
- if (!event[KEYS.CTRL_OR_CMD]) {
+ if (!event[KEYS.CTRL_OR_CMD] && !this.state.viewModeEnabled) {
this.startTextEditing({
sceneX,
sceneY,