mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
cancel text via doubleclick when in multiElement mode (#926)
This commit is contained in:
parent
f0e6f4dbb8
commit
95e726bd6f
1 changed files with 6 additions and 0 deletions
|
@ -779,6 +779,12 @@ export class App extends React.Component<any, AppState> {
|
|||
private handleCanvasDoubleClick = (
|
||||
event: React.MouseEvent<HTMLCanvasElement>,
|
||||
) => {
|
||||
// case: double-clicking with arrow/line tool selected would both create
|
||||
// text and enter multiElement mode
|
||||
if (this.state.multiElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
resetCursor();
|
||||
|
||||
const { x, y } = viewportCoordsToSceneCoords(
|
||||
|
|
Loading…
Add table
Reference in a new issue