feat: grid mode for line editing (#1984)

This commit is contained in:
Daishi Kato 2020-07-31 00:09:51 +09:00 committed by GitHub
parent c171fb4c7f
commit 818821c293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 27 deletions

View file

@ -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) {