mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: stop autoselecting text on text edit on mobile (#8076)
This commit is contained in:
parent
860308eb27
commit
69f4cc70cb
2 changed files with 12 additions and 3 deletions
|
@ -4421,6 +4421,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||
element,
|
||||
excalidrawContainer: this.excalidrawContainerRef.current,
|
||||
app: this,
|
||||
// when text is selected, it's hard (at least on iOS) to re-position the
|
||||
// caret (i.e. deselect). There's not much use for always selecting
|
||||
// the text on edit anyway (and users can select-all from contextmenu
|
||||
// if needed)
|
||||
autoSelect: !this.device.isTouchScreen,
|
||||
});
|
||||
// deselect all other elements when inserting text
|
||||
this.deselectElements();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue