mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix some element types reset to selection when the lock is active (#746)
* keep arrows and lines selected if locked * keep element type selected if locked after inserting text * ensure clicking outside doesn't create new text * esc should switch to selection even if locked * reset cursor when creating text via doubleClick Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
1ec3946ed6
commit
fa12125db0
3 changed files with 46 additions and 15 deletions
|
@ -126,3 +126,7 @@ export function distance2d(x1: number, y1: number, x2: number, y2: number) {
|
|||
const yd = y2 - y1;
|
||||
return Math.sqrt(xd * xd + yd * yd);
|
||||
}
|
||||
|
||||
export function resetCursor() {
|
||||
document.documentElement.style.cursor = "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue