mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: grid mode for line editing (#1984)
This commit is contained in:
parent
c171fb4c7f
commit
818821c293
2 changed files with 44 additions and 27 deletions
|
@ -1883,6 +1883,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
scenePointerX,
|
||||
scenePointerY,
|
||||
this.state.editingLinearElement,
|
||||
this.state.gridSize,
|
||||
);
|
||||
if (editingLinearElement !== this.state.editingLinearElement) {
|
||||
this.setState({ editingLinearElement });
|
||||
|
@ -2778,8 +2779,6 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
(appState) => this.setState(appState),
|
||||
x,
|
||||
y,
|
||||
pointerDownState.lastCoords.x,
|
||||
pointerDownState.lastCoords.y,
|
||||
);
|
||||
|
||||
if (didDrag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue